This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=c720bbd7a97bfb5ec547da10da5e2322a8e4c0b8 commit c720bbd7a97bfb5ec547da10da5e2322a8e4c0b8 Author: Guillem Jover <[email protected]> AuthorDate: Wed Sep 2 04:23:11 2020 +0200 dpkg-deb: Fix single-instance memory leak on missing conffiles control file This gets leaked just once while checking the conffile control file. Warned-by: gcc ASAN --- dpkg-deb/build.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dpkg-deb/build.c b/dpkg-deb/build.c index faaf09122..7f29ba22f 100644 --- a/dpkg-deb/build.c +++ b/dpkg-deb/build.c @@ -259,8 +259,10 @@ check_conffiles(const char *ctrldir, const char *rootdir) cf = fopen(controlfile.buf, "r"); if (cf == NULL) { - if (errno == ENOENT) + if (errno == ENOENT) { + varbuf_destroy(&controlfile); return; + } ohshite(_("error opening conffiles file")); } -- Dpkg.Org's dpkg

