summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2016-09-02 15:54:58 +0200
committerKrzysztof Opasiak <k.opasiak@samsung.com>2016-09-02 17:39:09 +0200
commitd441f10717ec04f212111218dad728180fd9da6c (patch)
treee68d0262443ec16692952f3e0bba1cba7a08b0f1
parent4e6ed4e6291c9a63b6db2d9c783bb3a2099fb044 (diff)
downloadlthor-d441f10717ec04f212111218dad728180fd9da6c.tar.gz
lthor-d441f10717ec04f212111218dad728180fd9da6c.tar.bz2
lthor-d441f10717ec04f212111218dad728180fd9da6c.zip
Fix memleak of entries array
Change-Id: I39259e1bdd48fc2a75cdb6652e918cef2775774c Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
-rw-r--r--libthor/thor_tar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libthor/thor_tar.c b/libthor/thor_tar.c
index f9508a4..5f34cc1 100644
--- a/libthor/thor_tar.c
+++ b/libthor/thor_tar.c
@@ -99,6 +99,7 @@ static void tar_release(struct thor_data_src *src)
STAILQ_REMOVE_HEAD(&tardata->ent, node);
free(container);
}
+ free(tardata->entries);
archive_read_close(tardata->ar);
archive_read_finish(tardata->ar);
archive_entry_free(tardata->ae);