diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-10-12 13:49:50 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-10-12 13:49:50 +0300 |
commit | bc716457e042e12f4e90efdabafe2cd69d3bff52 (patch) | |
tree | f25f5928a87da3f83405aab15c7479eb140459e9 /lib/headerfmt.c | |
parent | 3ec070c5d8c16a593ab2573f0f63d58a748ba2c1 (diff) | |
download | rpm-bc716457e042e12f4e90efdabafe2cd69d3bff52.tar.gz |
Fix format extension memleak on empty strings
Diffstat (limited to 'lib/headerfmt.c')
-rw-r--r-- | lib/headerfmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/headerfmt.c b/lib/headerfmt.c index 95bb3eeea..29bf537d4 100644 --- a/lib/headerfmt.c +++ b/lib/headerfmt.c @@ -643,8 +643,8 @@ static char * formatValue(headerSprintfArgs hsa, sprintfTag tag, int element) t = hsaReserve(hsa, need); te = stpcpy(t, val); hsa->vallen += (te - t); - val = _free(val); } + free(val); return (hsa->val + hsa->vallen); } |