]> Savannah Git Hosting - gnulib.git/commitdiff
di-set: Fix memory leak.
authorBruno Haible <bruno@clisp.org>
Sun, 10 Mar 2019 13:18:37 +0000 (14:18 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 10 Mar 2019 13:18:37 +0000 (14:18 +0100)
* lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
not free().

ChangeLog
lib/di-set.c

index a5f2a6150c985a09db13b6a74a2b2108ba51e027..5ddd3b6e00ef6723599ba1b96fd8591c81c57650 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-03-10  Bruno Haible  <bruno@clisp.org>
+
+       di-set: Fix memory leak.
+       * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
+       not free().
+
 2019-03-10  Bruno Haible  <bruno@clisp.org>
 
        tests: Free allocated memory.
index e8f69dbdb91190b12e80d934a115fb913f53cf68..2c0601e03b9fb09f3ada30110d4184d44738d7f8 100644 (file)
@@ -136,7 +136,7 @@ void
 di_set_free (struct di_set *dis)
 {
   hash_free (dis->dev_map);
-  free (dis->ino_map);
+  ino_map_free (dis->ino_map);
   free (dis->probe);
   free (dis);
 }