diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2016-09-02 18:40:37 +0200 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2016-09-02 18:54:25 +0200 |
commit | 2e4d8e56dd7d35d08fede88b3f769193adc603d8 (patch) | |
tree | fd6934f0dfe0d6c426a72b194a7418ac348ffc0c | |
parent | be6f556a7fce6db1125fc49d8f20ea6f7ab1c5b3 (diff) | |
download | lthor-2e4d8e56dd7d35d08fede88b3f769193adc603d8.tar.gz lthor-2e4d8e56dd7d35d08fede88b3f769193adc603d8.tar.bz2 lthor-2e4d8e56dd7d35d08fede88b3f769193adc603d8.zip |
Fix memleak of entry name
Change-Id: I57fe94546759888697871fa716e865771801b00b
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
-rw-r--r-- | libthor/thor_tar.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libthor/thor_tar.c b/libthor/thor_tar.c index 5f34cc1..0f6fb10 100644 --- a/libthor/thor_tar.c +++ b/libthor/thor_tar.c @@ -97,6 +97,7 @@ static void tar_release(struct thor_data_src *src) while (!STAILQ_EMPTY(&tardata->ent)) { container = STAILQ_FIRST(&tardata->ent); STAILQ_REMOVE_HEAD(&tardata->ent, node); + free(container->entry.name); free(container); } free(tardata->entries); |