Fix memory leak in mountd.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 16 Mar 2007 00:26:35 +0000 (11:26 +1100)
committerNeil Brown <neilb@suse.de>
Fri, 16 Mar 2007 00:26:35 +0000 (11:26 +1100)
Signed-off-by: Neil Brown <neilb@suse.de>
support/export/client.c

index 33dfdb0..686c744 100644 (file)
@@ -329,6 +329,7 @@ add_name(char *old, char *add)
                strcat(new, ",");
                strcat(new, cp);
        }
+       free(old);
        return new;
 }