summaryrefslogtreecommitdiffstats
path: root/xlators/nfs
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/nfs')
-rw-r--r--xlators/nfs/server/src/netgroups.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/nfs/server/src/netgroups.c b/xlators/nfs/server/src/netgroups.c
index c605ca2664..f5c966948f 100644
--- a/xlators/nfs/server/src/netgroups.c
+++ b/xlators/nfs/server/src/netgroups.c
@@ -1122,7 +1122,8 @@ ng_file_parse (const char *filepath)
}
}
- GF_FREE (line);
+ /* line got allocated through getline(), don't use GF_FREE() for it */
+ free (line);
if (fp)
fclose(fp);