From: Wichert Akkerman Date: Thu, 23 Nov 2000 17:00:16 +0000 (+0000) Subject: fix two memory leaks X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c6ffe88990b76fbfe7aebefa0645887784b49fa;p=dpkg fix two memory leaks --- diff --git a/ChangeLog b/ChangeLog index 1aa7d94e..f2d83fe4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Nov 23 17:52:44 CET 2000 Wichert Akkerman + + * lib/fields.c, lib/dump.c: fix two memory leaks + Thu Nov 23 15:48:53 CET 2000 Wichert Akkerman * scripts/dpkg-buildpackage.sh: Name .changes file properly if diff --git a/debian/changelog b/debian/changelog index 5e1d72b2..422131e0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +dpkg (1.8.0) unstable; urgency=low + + * Fix two memory leaks. Closes: Bug#74259 + + -- Wichert Akkerman UNRELEASED + dpkg (1.7.2) unstable; urgency=low * Fix parsing of configuration files diff --git a/lib/dump.c b/lib/dump.c index 53fb1bab..acd81a3f 100644 --- a/lib/dump.c +++ b/lib/dump.c @@ -222,6 +222,7 @@ void writerecord(FILE *file, const char *filename, varbufaddc(&vb,'\0'); if (fputs(vb.buf,file) < 0) ohshite("failed to write details of `%.50s' to `%.250s'", pigp->name, filename); + varbuffree(&vb); } void writedb(const char *filename, int available, int mustsync) { diff --git a/lib/fields.c b/lib/fields.c index a4479722..f45e99e3 100644 --- a/lib/fields.c +++ b/lib/fields.c @@ -381,5 +381,6 @@ void f_dependency(struct pkginfo *pigp, struct pkginfoperfile *pifp, if (!*p) break; p++; while (isspace(*p)) p++; } + varbuffree(&depname); varbuffree(&version); }