summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source3/utils/net_usershare.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/utils/net_usershare.c b/source3/utils/net_usershare.c
index b4d04bf3388..1a5c0777211 100644
--- a/source3/utils/net_usershare.c
+++ b/source3/utils/net_usershare.c
@@ -348,6 +348,8 @@ static int info_fn(struct file_list *fl, void *priv)
comment,
&psd);
+ file_lines_free(lines);
+
if (us_err != USERSHARE_OK) {
d_fprintf(stderr, "info_fn: file %s is not a well formed usershare file.\n",
basepath );