Browse Source

Lesson the memory footprint.

Adam Heath 25 years ago
parent
commit
66ceebfce1
5 changed files with 9 additions and 4 deletions
  1. 4 0
      ChangeLog
  2. 2 1
      debian/changelog
  3. 1 1
      lib/nfmalloc.c
  4. 1 1
      lib/parsehelp.c
  5. 1 1
      po/dpkg.pot

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+Wed Dec 20 01:31:28 CST 2000 Adam Heath <doogie@debian.org>
+
+  * lib/nfmalloc.c, lib/parsehelp.c: Lesson the memory footprint.
+
 Wed Dec 20 01:11:13 CST 2000 Adam Heath <doogie@debian.org>
 
   * dpkg-deb/build.c: Fix building of debs, when there is no given

+ 2 - 1
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

+ 1 - 1
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);
 };
 

+ 1 - 1
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;
 }

+ 1 - 1
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 <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"