From 9e5158f59e7cc7db3479e86b0ad830836505b353 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 14 Apr 2014 16:06:32 +0200 Subject: [PATCH] Closed a memory leak introduced with rev 1133 --- libisofs/tree.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libisofs/tree.c b/libisofs/tree.c index e04bfb7..cf0a1e3 100644 --- a/libisofs/tree.c +++ b/libisofs/tree.c @@ -1232,6 +1232,8 @@ int iso_tree_get_node_of_block(IsoImage *image, IsoDir *dir, uint32_t block, ex: if (sections != NULL) free(sections); + if (iter != NULL); + iso_dir_iter_free(iter); return ret; }