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:
be6f556
)
Fix memleak of entry name
69/86769/2
author
Krzysztof Opasiak
<k.opasiak@samsung.com>
Fri, 2 Sep 2016 16:40:37 +0000
(18:40 +0200)
committer
Krzysztof Opasiak
<k.opasiak@samsung.com>
Fri, 2 Sep 2016 16:54:25 +0000
(18:54 +0200)
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);