diff options
Diffstat (limited to 'src/upb_string.h')
-rw-r--r-- | src/upb_string.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/upb_string.h b/src/upb_string.h index 5aa5f3b..e017268 100644 --- a/src/upb_string.h +++ b/src/upb_string.h @@ -182,6 +182,11 @@ INLINE void upb_string_recycle(upb_string **_str) { str->len = 0; _upb_string_release(str); } else { + //if (!str) { + // printf("!str\n"); + //} + //else if (upb_atomic_read(&str->refcount) != 1) { printf("refcount: %d\n", upb_atomic_read(&str->refcount)); } + //else { printf("Some other reason.\n"); } upb_string_unref(str); *_str = upb_string_new(); } |