projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eabfd39
)
Fix memleak in headerGetDumber() .. err .. Number()
author
Panu Matilainen
<pmatilai@redhat.com>
Fri, 4 Sep 2009 10:38:58 +0000
(13:38 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Fri, 4 Sep 2009 10:38:58 +0000
(13:38 +0300)
lib/header.c
patch
|
blob
|
history
diff --git
a/lib/header.c
b/lib/header.c
index
91fa638
..
e309cec
100644
(file)
--- a/
lib/header.c
+++ b/
lib/header.c
@@
-1943,6
+1943,7
@@
uint64_t headerGetNumber(Header h, rpmTag tag)
if (rpmtdCount(&td) == 1) {
res = rpmtdGetNumber(&td);
}
+ rpmtdFreeData(&td);
}
return res;
}