From 08964495c2a65f6228426e4565a50dae5b75834d Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 16 Mar 2007 11:26:35 +1100 Subject: [PATCH] Fix memory leak in mountd. Signed-off-by: Neil Brown --- support/export/client.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.39.5