diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_string.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_string.c b/tests/test_string.c index 5e6e2a9..5869b70 100644 --- a/tests/test_string.c +++ b/tests/test_string.c @@ -66,4 +66,7 @@ int main() { upb_string_unref(str); upb_string_unref(str2); + + // Unref of NULL is harmless. + upb_string_unref(NULL); } |