Sean Finney лет назад: 18
Родитель
Сommit
c786c2f044
5 измененных файлов с 12 добавлено и 0 удалено
  1. 6 0
      ChangeLog
  2. 1 0
      THANKS
  3. 2 0
      debian/changelog
  4. 2 0
      lib/dump.c
  5. 1 0
      src/help.c

+ 6 - 0
ChangeLog

@@ -1,3 +1,9 @@
+2008-03-06  Sean Finney  <seanius@seanius.net>
+
+	* lib/dump.c (writedb): Free newfn and oldfn.
+	* src/help.c (clear_istobes): Free pkgiterator 'it' by calling
+	iterpkgend.
+
 2008-03-02  Raphael Hertzog  <hertzog@debian.org>
 
 	* scripts/dpkg-gencontrol.pl, scripts/dpkg-source.pl:

+ 1 - 0
THANKS

@@ -145,6 +145,7 @@ SZERVÁC Attila <sas@321.hu>
 Samuel Thibault <samuel.thibault@ens-lyon.org>
 Scott Barker <scott@mostlylinux.ab.ca>
 Scott James Remnant <scott@netsplit.com>
+Sean Finney <seanius@seanius.net>
 Sergio Gelato <Sergio.Gelato@astro.su.se>
 Stefano Canepa <sc@linux.it>
 Stepan Golosunov <stepan@golosunov.pp.ru>

+ 2 - 0
debian/changelog

@@ -17,6 +17,8 @@ dpkg (1.14.17) UNRELEASED; urgency=low
   * Change dpkg-gencontrol to not output the Homapage field on udeb.
   * Reintroduce 'no-debsig' back in dpkg.cfg to avoid failing to install any
     package when debsig-verify is installed. Closes: #311843
+  * Fix some small memory leaks. Closes: #469520
+    Thanks to Sean Finney.
 
   [ Raphael Hertzog ]
   * Add a warning displayed by dpkg-genchanges if the current version is

+ 2 - 0
lib/dump.c

@@ -325,4 +325,6 @@ void writedb(const char *filename, int available, int mustsync) {
   if (rename(newfn,filename))
     ohshite(_("failed to install `%.250s' as `%.250s' containing %s info"),
             newfn, filename, which);
+  free(newfn);
+  free(oldfn);
 }

+ 1 - 0
src/help.c

@@ -400,6 +400,7 @@ void clear_istobes(void) {
     pkg->clientdata->istobe= itb_normal;
     pkg->clientdata->replacingfilesandsaid= 0;
   }
+  iterpkgend(it);
 }
 
 void debug(int which, const char *fmt, ...) {