summaryrefslogtreecommitdiffstats
path: root/tools/rpcgen/rpc_scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/rpcgen/rpc_scan.c')
-rw-r--r--tools/rpcgen/rpc_scan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/rpcgen/rpc_scan.c b/tools/rpcgen/rpc_scan.c
index 62d906d..51eecfe 100644
--- a/tools/rpcgen/rpc_scan.c
+++ b/tools/rpcgen/rpc_scan.c
@@ -468,6 +468,7 @@ docppline(char *line, int *lineno, char **fname)
*p = 0;
if (*file == 0) {
*fname = NULL;
+ free(file);
} else {
*fname = file;
}