From 7c6a763bd8e7e71d1c6ece695e25eb5bd6bb4f8a Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Thu, 13 Aug 2015 14:22:41 -0700 Subject: [PATCH] Fix from google3: memory leak caught by heapcheck. --- tests/test_def.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_def.c b/tests/test_def.c index 3e92df2cf9..52d780b1fe 100644 --- a/tests/test_def.c +++ b/tests/test_def.c @@ -252,6 +252,7 @@ static void test_cycles_in_replacement() { &s, NULL); ASSERT_STATUS(upb_symtab_add(s, (upb_def**)&m, 1, &s, &status), &status); ASSERT_STATUS(upb_symtab_add(s, NULL, 0, &s, &status), &status); + upb_symtab_unref(s, &s); } static void test_freeze_free() {