Message ID | 20200108184736.19446-1-dmalcolm@redhat.com |
---|---|
State | New |
Headers | show |
Series | [committed] hash-map-tests.c: fix memory leak | expand |
diff --git a/gcc/hash-map-tests.c b/gcc/hash-map-tests.c index c351bb22ddba..635740290658 100644 --- a/gcc/hash-map-tests.c +++ b/gcc/hash-map-tests.c @@ -101,6 +101,8 @@ test_map_of_strings_to_int () ASSERT_EQ (1, string_map.elements ()); ASSERT_EQ (true, string_map.put (another_ant, 5)); ASSERT_EQ (1, string_map.elements ()); + + free (another_ant); } /* Construct a hash_map using int_hash and verify that