The following commit has been merged in the master branch:
commit c786c2f044ef7b395bbecac15d79e561e3d66050
Author: Sean Finney <[EMAIL PROTECTED]>
Date: Sat Mar 1 09:44:09 2008 +0100
Fix small memory leaks
diff --git a/ChangeLog b/ChangeLog
index ec9e52d..fdf49ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-03-06 Sean Finney <[EMAIL PROTECTED]>
+
+ * lib/dump.c (writedb): Free newfn and oldfn.
+ * src/help.c (clear_istobes): Free pkgiterator 'it' by calling
+ iterpkgend.
+
2008-03-02 Raphael Hertzog <[EMAIL PROTECTED]>
* scripts/dpkg-gencontrol.pl, scripts/dpkg-source.pl:
diff --git a/THANKS b/THANKS
index c61d127..a6edd73 100644
--- a/THANKS
+++ b/THANKS
@@ -145,6 +145,7 @@ SZERVĂC Attila <[EMAIL PROTECTED]>
Samuel Thibault <[EMAIL PROTECTED]>
Scott Barker <[EMAIL PROTECTED]>
Scott James Remnant <[EMAIL PROTECTED]>
+Sean Finney <[EMAIL PROTECTED]>
Sergio Gelato <[EMAIL PROTECTED]>
Stefano Canepa <[EMAIL PROTECTED]>
Stepan Golosunov <[EMAIL PROTECTED]>
diff --git a/debian/changelog b/debian/changelog
index 159271c..8778ff4 100644
--- a/debian/changelog
+++ b/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
diff --git a/lib/dump.c b/lib/dump.c
index 9e8bb0d..1154795 100644
--- a/lib/dump.c
+++ b/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);
}
diff --git a/src/help.c b/src/help.c
index 3b9bc76..78e3b29 100644
--- a/src/help.c
+++ b/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, ...) {
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]