From 66ceebfce1b7c0524d553d98d04c39a39c7c2d25 Mon Sep 17 00:00:00 2001 From: Adam Heath Date: Wed, 20 Dec 2000 07:33:47 +0000 Subject: [PATCH] Lesson the memory footprint. --- ChangeLog | 4 ++++ debian/changelog | 3 ++- lib/nfmalloc.c | 2 +- lib/parsehelp.c | 2 +- po/dpkg.pot | 2 +- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0a143c9e..18196067 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Dec 20 01:31:28 CST 2000 Adam Heath + + * lib/nfmalloc.c, lib/parsehelp.c: Lesson the memory footprint. + Wed Dec 20 01:11:13 CST 2000 Adam Heath * dpkg-deb/build.c: Fix building of debs, when there is no given diff --git a/debian/changelog b/debian/changelog index 00eb6152..8d4dd3af 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ dpkg (1.8.0) unstable; urgency=low - * Fix two memory leaks. Closes: Bug#74259 + * Fix two memory leaks, and lesson the memory foot print a tad. Hints + taken from 74259. * Fix some things perl5.6 complains about. Closes: Bug#77337 * Fix referenes to dpkg-deb manpage. Closes: Bug#77855 * Update Galish translation diff --git a/lib/nfmalloc.c b/lib/nfmalloc.c index d2703b13..c2ba7e7f 100644 --- a/lib/nfmalloc.c +++ b/lib/nfmalloc.c @@ -30,7 +30,7 @@ #define UNIQUE 4096 union maxalign { - long l; long double d; + long l; void *pv; char *pc; union maxalign *ps; void (*pf)(void); }; diff --git a/lib/parsehelp.c b/lib/parsehelp.c index 7999c8cf..f79aebfe 100644 --- a/lib/parsehelp.c +++ b/lib/parsehelp.c @@ -206,7 +206,7 @@ const char *parseversion(struct versionrevision *rversion, const char *string) { rversion->version= nfstrsave(string); hyphen= strrchr(rversion->version,'-'); if (hyphen) *hyphen++= 0; - rversion->revision= hyphen ? hyphen : nfstrsave(""); + rversion->revision= hyphen ? hyphen : ""; return 0; } diff --git a/po/dpkg.pot b/po/dpkg.pot index 9ddad895..b4954c97 100644 --- a/po/dpkg.pot +++ b/po/dpkg.pot @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2000-12-20 01:22-0600\n" +"POT-Creation-Date: 2000-12-20 01:32-0600\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" -- 2.39.5