summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/main/pe_get_image_meta.c6
1 files changed, 6 insertions, 0 deletions
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; i<meta->summary.num_of_implibs; i++)
+ free(meta->idata[i].items);
+
+ free(meta->idata);
free(meta->sectbl);
free(meta);