[PATCH] small memory leak fixes
From: Sean Finney <seanius@seanius.net>
---
lib/dump.c | 2 ++
src/help.c | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/lib/dump.c b/lib/dump.c
index 9e8bb0d..1154795 100644
--- a/lib/dump.c
+++ b/lib/dump.c
@@ -325,4 +325,6 @@ void writedb(const char *filename, int available, int mustsync) {
if (rename(newfn,filename))
ohshite(_("failed to install `%.250s' as `%.250s' containing %s info"),
newfn, filename, which);
+ free(newfn);
+ free(oldfn);
}
diff --git a/src/help.c b/src/help.c
index 3b9bc76..78e3b29 100644
--- a/src/help.c
+++ b/src/help.c
@@ -400,6 +400,7 @@ void clear_istobes(void) {
pkg->clientdata->istobe= itb_normal;
pkg->clientdata->replacingfilesandsaid= 0;
}
+ iterpkgend(it);
}
void debug(int which, const char *fmt, ...) {
--
1.5.4.3
Reply to: