summaryrefslogtreecommitdiff
path: root/tests/test_string.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_string.c')
-rw-r--r--tests/test_string.c3
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);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback