[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cdi-devel] [PATCH] Memoryleak in ISO9660 driver



! Added function call to free up the ressource structure

Signed-off-by: OSDevNewbie <baesae@xxxxxxxxxx>
---
 iso9660/res.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/iso9660/res.c b/iso9660/res.c
index 7180eed..e526a4e 100644
--- a/iso9660/res.c
+++ b/iso9660/res.c
@@ -87,6 +87,7 @@ int iso9660_fs_res_destroy(struct iso9660_fs_res *res) {
     for (i=0;(child = cdi_list_get(res->res.children,i));i++) iso9660_fs_res_destroy(child);
     cdi_list_destroy(res->res.children);
   }
+  free(res);
   return 0;
 }
 
-- 
1.9.1