From: Guillem Jover Date: Wed, 4 Jun 2008 00:35:36 +0000 (+0300) Subject: dpkg: Fix memory leaks on --set-selections X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9c32d1e80373f7c91ddbf37288df0d969e71044;p=dpkg dpkg: Fix memory leaks on --set-selections --- diff --git a/ChangeLog b/ChangeLog index 238787be..ad6da428 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-06-04 Guillem Jover + + * src/select.c (setselections): Free varbuf variables. + 2008-06-04 Guillem Jover * lib/subproc.c (catch_signals): Remove array sentinel. diff --git a/src/select.c b/src/select.c index b7440825..4b535894 100644 --- a/src/select.c +++ b/src/select.c @@ -142,8 +142,8 @@ void setselections(const char *const *argv) { } if (ferror(stdin)) ohshite(_("read error on standard input")); modstatdb_shutdown(); - varbufreset(&namevb); - varbufreset(&selvb); + varbuffree(&namevb); + varbuffree(&selvb); } void clearselections(const char *const *argv)