~ubuntu-branches/ubuntu/feisty/nfs-utils/feisty

« back to all changes in this revision

Viewing changes to debian/patches/03-fix-mountd-memory-leak.patch

  • Committer: Bazaar Package Importer
  • Author(s): Steinar H. Gunderson
  • Date: 2007-03-07 11:46:25 UTC
  • mfrom: (1.2.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20070307114625-pgjnrd4mvl76bolx
Tags: 1:1.0.12-4
Bump the versioned dependency on libblkid1 to require at least version
1.39+1.40-WIP-2006.11.14+dfsg-2, which ensures that we get a version
that doesn't make mountd leak memory on every mount.
(Closes: #413429)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Index: nfs-utils-1.0.12/support/export/client.c
 
2
===================================================================
 
3
--- nfs-utils-1.0.12.orig/support/export/client.c
 
4
+++ nfs-utils-1.0.12/support/export/client.c
 
5
@@ -329,6 +329,7 @@ add_name(char *old, char *add)
 
6
                strcat(new, ",");
 
7
                strcat(new, cp);
 
8
        }
 
9
+       free(old);
 
10
        return new;
 
11
 }
 
12