From: Steinar H. Gunderson Date: Fri, 16 Mar 2007 00:26:35 +0000 (+1100) Subject: Fix memory leak in mountd. X-Git-Tag: nfs-utils-1-1-0-rc1~79 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=08964495c2a65f6228426e4565a50dae5b75834d;p=nfs-utils.git Fix memory leak in mountd. Signed-off-by: Neil Brown --- diff --git a/support/export/client.c b/support/export/client.c index 33dfdb0..686c744 100644 --- a/support/export/client.c +++ b/support/export/client.c @@ -329,6 +329,7 @@ add_name(char *old, char *add) strcat(new, ","); strcat(new, cp); } + free(old); return new; }