summaryrefslogtreecommitdiff
path: root/lib/lookup.c
diff options
context:
space:
mode:
authorewt <devnull@localhost>1998-01-12 16:58:31 +0000
committerewt <devnull@localhost>1998-01-12 16:58:31 +0000
commitec07f9df959c911c60727ba68c455f4ff20497bf (patch)
tree995a49389c339c6aa07eb32f60924685859fe853 /lib/lookup.c
parent32c00a2278b5d3fe2d17d7829d48002723a8172f (diff)
downloadlibrpm-tizen-ec07f9df959c911c60727ba68c455f4ff20497bf.tar.gz
librpm-tizen-ec07f9df959c911c60727ba68c455f4ff20497bf.tar.bz2
librpm-tizen-ec07f9df959c911c60727ba68c455f4ff20497bf.zip
fixed memory leak -- findMatches() wasn't freeing headers
CVS patchset: 1953 CVS date: 1998/01/12 16:58:31
Diffstat (limited to 'lib/lookup.c')
-rw-r--r--lib/lookup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/lookup.c b/lib/lookup.c
index 3971c8c49..9b60ac71c 100644
--- a/lib/lookup.c
+++ b/lib/lookup.c
@@ -108,6 +108,8 @@ static int findMatches(rpmdb db, char * name, char * version, char * release,
gotMatches = 1;
else
matches->recs[i].recOffset = 0;
+
+ headerFree(h);
}
}