X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=support%2Fexport%2Fclient.c;h=19b53aaa5f831be97aa859ea27470e0c70a95b40;hb=dd087896285da9e160e13ee9f7d75381b67895e3;hp=c09e7620eacb12e782f3e635cb09baa8e48b6c68;hpb=ac5b03be829b4c9369ebfb07a688308721103228;p=nfs-utils.git diff --git a/support/export/client.c b/support/export/client.c index c09e762..19b53aa 100644 --- a/support/export/client.c +++ b/support/export/client.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include "xmalloc.h" #include "misc.h" @@ -261,6 +262,7 @@ client_compose(struct in_addr addr) name = add_name(name, clp->m_hostname); } } + free(he); return name; } @@ -328,6 +330,7 @@ add_name(char *old, char *add) strcat(new, ","); strcat(new, cp); } + free(old); return new; }