summaryrefslogtreecommitdiff
path: root/dpkg-deb
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2014-11-14 17:34:10 +0100
committerGuillem Jover <guillem@debian.org>2015-02-11 04:42:40 +0100
commit2aeff6e069580bae18b0e936b140cedbb7befa18 (patch)
treeb15bfdda130becf9d1db4c0b3099a7081bb37055 /dpkg-deb
parentb284e7dc76923be937d6402536674e65a1e2eddb (diff)
downloaddpkg-2aeff6e069580bae18b0e936b140cedbb7befa18.tar.gz
dpkg-deb, libdpkg: Fix short-lived memory leaks
Closes: #769515
Diffstat (limited to 'dpkg-deb')
-rw-r--r--dpkg-deb/build.c2
-rw-r--r--dpkg-deb/info.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/dpkg-deb/build.c b/dpkg-deb/build.c
index 7c825d618..5a2605fbe 100644
--- a/dpkg-deb/build.c
+++ b/dpkg-deb/build.c
@@ -621,5 +621,7 @@ do_build(const char *const *argv)
if (close(arfd))
ohshite(_("unable to close file '%s'"), debar);
+ free(debar);
+
return 0;
}
diff --git a/dpkg-deb/info.c b/dpkg-deb/info.c
index 9640ea4bb..16ec14cc6 100644
--- a/dpkg-deb/info.c
+++ b/dpkg-deb/info.c
@@ -66,6 +66,8 @@ static void cu_info_prepare(int argc, void **argv) {
ohshite(_("unable to execute %s (%s)"), _("rm command for cleanup"), RM);
}
subproc_reap(pid, _("rm command for cleanup"), 0);
+
+ free(dir);
}
static void info_prepare(const char *const **argvp,