]> err.no Git - dpkg/commitdiff
dpkg: Fix memory leaks on --set-selections
authorGuillem Jover <guillem@debian.org>
Wed, 4 Jun 2008 00:35:36 +0000 (03:35 +0300)
committerGuillem Jover <guillem@debian.org>
Wed, 4 Jun 2008 00:35:36 +0000 (03:35 +0300)
ChangeLog
src/select.c

index 238787be149103a80397e61c4194ee021adf76ab..ad6da42826d29d95e3a6eff2d815f0b14ed17446 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-06-04  Guillem Jover  <guillem@debian.org>
+
+       * src/select.c (setselections): Free varbuf variables.
+
 2008-06-04  Guillem Jover  <guillem@debian.org>
 
        * lib/subproc.c (catch_signals): Remove array sentinel.
index b74408252dee0ff6581b34b8a3726ab288a5940f..4b53589426de2ad9b42d7c7852aa623796874fbc 100644 (file)
@@ -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)