summaryrefslogtreecommitdiff
path: root/core/upb_string.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/upb_string.c')
-rw-r--r--core/upb_string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/upb_string.c b/core/upb_string.c
index bc5b772..297583b 100644
--- a/core/upb_string.c
+++ b/core/upb_string.c
@@ -63,7 +63,7 @@ void _upb_string_free(upb_string *str) {
void upb_string_recycle(upb_string **_str) {
upb_string *str = *_str;
- if(str && upb_atomic_read(&str->refcount) == 1) {
+ if(str && upb_atomic_only(&str->refcount)) {
str->ptr = NULL;
upb_string_release(str);
} else {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback