summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-05-20 11:56:47 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-05-21 12:04:50 +0300
commit845eb8fc70493da08e9cf31749796dbb976aa657 (patch)
tree148fa6aeabc67a2ac5fe608589775e16da2db1df /lib
parent86bd819cee03899bb35b5edc99ccc0831755f388 (diff)
downloadlibrpm-tizen-845eb8fc70493da08e9cf31749796dbb976aa657.tar.gz
librpm-tizen-845eb8fc70493da08e9cf31749796dbb976aa657.tar.bz2
librpm-tizen-845eb8fc70493da08e9cf31749796dbb976aa657.zip
Avoid leaking memory on legacy header interface emulation
Diffstat (limited to 'lib')
-rw-r--r--lib/header.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/header.c b/lib/header.c
index a3ebfc84a..6b0d28821 100644
--- a/lib/header.c
+++ b/lib/header.c
@@ -74,6 +74,8 @@ static const int typeSizes[16] = {
*type = td.type; \
if (p) \
*p = td.data; \
+ else \
+ rpmtdFreeData(&td); \
if (c) \
*c = td.count