projects
/
tools
/
lthor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ec8b49
)
Fix memleak of entry name
author
Krzysztof Opasiak
<k.opasiak@samsung.com>
Fri, 2 Sep 2016 16:40:37 +0000
(18:40 +0200)
committer
Seung-Woo Kim
<sw0312.kim@samsung.com>
Mon, 10 Apr 2017 07:48:57 +0000
(16:48 +0900)
Change-Id: I57fe94546759888697871fa716e865771801b00b
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
libthor/thor_tar.c
patch
|
blob
|
history
diff --git
a/libthor/thor_tar.c
b/libthor/thor_tar.c
index 5f34cc1b572e49a3214662379b92b0702b67bbcf..0f6fb10387307adfd393533e6bc37585ff75fdfb 100644
(file)
--- 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);