diff options
author | Guillem Jover <guillem@debian.org> | 2013-08-28 02:55:10 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2013-10-17 08:21:39 +0200 |
commit | 240330b3738c2374c916ff225a86b039860ddbc1 (patch) | |
tree | 3a94c544eff83d08722ec2817926907825674e6a /dpkg-deb | |
parent | 2fa8794747f12312cba6333f8d06c3229f23c469 (diff) | |
download | dpkg-240330b3738c2374c916ff225a86b039860ddbc1.tar.gz |
dpkg-deb: Do not leak the data member file descriptor
Although this is currently a very short-lived leak.
Reported-by: Jérémy Bobbio <lunar@debian.org>
Diffstat (limited to 'dpkg-deb')
-rw-r--r-- | dpkg-deb/build.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dpkg-deb/build.c b/dpkg-deb/build.c index 348e01e63..389c5528d 100644 --- a/dpkg-deb/build.c +++ b/dpkg-deb/build.c @@ -606,6 +606,8 @@ do_build(const char *const *argv) ohshite(_("failed to rewind temporary file (%s)"), _("data member")); dpkg_ar_member_put_file(debar, arfd, datamember, gzfd, -1); + + close(gzfd); } if (fsync(arfd)) ohshite(_("unable to sync file '%s'"), debar); |