diff options
author | midipix <writeonce@midipix.org> | 2015-05-02 21:22:49 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-10 23:35:18 -0500 |
commit | 4e9e98a77d458aa2c197dfca2562aa18abcd2095 (patch) | |
tree | a0524bf263e9456ce41285b863b67d999fb363dd | |
parent | 25819834f1331f1d2982a9c0e24da004b2bc7ceb (diff) | |
download | perk-4e9e98a77d458aa2c197dfca2562aa18abcd2095.tar.bz2 perk-4e9e98a77d458aa2c197dfca2562aa18abcd2095.tar.xz |
pe_free_image_meta_impl(): free implib-related memory.
-rw-r--r-- | src/main/pe_get_image_meta.c | 6 |
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); |