From f9c32d1e80373f7c91ddbf37288df0d969e71044 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Wed, 4 Jun 2008 03:35:36 +0300 Subject: [PATCH] dpkg: Fix memory leaks on --set-selections --- ChangeLog | 4 ++++ src/select.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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) -- 2.39.5