From 4e9e98a77d458aa2c197dfca2562aa18abcd2095 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 2 May 2015 21:22:49 -0400 Subject: pe_free_image_meta_impl(): free implib-related memory. --- src/main/pe_get_image_meta.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main') diff --git a/src/main/pe_get_image_meta.c b/src/main/pe_get_image_meta.c index 454f233..f7a4139 100644 --- a/src/main/pe_get_image_meta.c +++ b/src/main/pe_get_image_meta.c @@ -9,8 +9,14 @@ static int pe_free_image_meta_impl (struct pe_image_meta * meta, int status) { + unsigned i; + if (!meta) return 0; + for (i=0; isummary.num_of_implibs; i++) + free(meta->idata[i].items); + + free(meta->idata); free(meta->sectbl); free(meta); -- cgit v1.2.3