diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2015-08-13 14:28:46 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2015-08-13 14:28:46 -0700 |
commit | 782670e6a3d924a66adf23c94732603103b97223 (patch) | |
tree | 04d9bf436f9c1395026cb7243ba6a80bb48973e2 | |
parent | d56339e6ff3b08140204addd6414b6fb7d915957 (diff) | |
parent | 7c6a763bd8e7e71d1c6ece695e25eb5bd6bb4f8a (diff) |
Merge pull request #37 from haberman/google-internal
Fix from google3: memory leak caught by heapcheck.
-rw-r--r-- | tests/test_def.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_def.c b/tests/test_def.c index 3e92df2..52d780b 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() { |