projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6491c55
)
rpmdbRemove() should free header it read
author
ewt
<devnull@localhost>
Mon, 21 Oct 1996 01:23:29 +0000
(
01:23
+0000)
committer
ewt
<devnull@localhost>
Mon, 21 Oct 1996 01:23:29 +0000
(
01:23
+0000)
matches needed to be freed in removeIndexEntry()
CVS patchset: 1120
CVS date: 1996/10/21 01:23:29
lib/rpmdb.c
patch
|
blob
|
history
diff --git
a/lib/rpmdb.c
b/lib/rpmdb.c
index
3c68b62
..
a51bfbe
100644
(file)
--- a/
lib/rpmdb.c
+++ b/
lib/rpmdb.c
@@
-298,6
+298,8
@@
static void removeIndexEntry(dbIndex * dbi, char * key, dbIndexRecord rec,
case 2:
break; /* error message already generated from dbindex.c */
}
+
+ freeDBIndexRecord(matches);
}
int rpmdbRemove(rpmdb db, unsigned int offset, int tolerant) {
@@
-390,6
+392,8
@@
int rpmdbRemove(rpmdb db, unsigned int offset, int tolerant) {
unblockSignals();
+ freeHeader(h);
+
return 0;
}