Fix various issues discovered by Coverity
[nfs-utils.git] / tools / rpcgen / rpc_scan.c
index 62d906d..51eecfe 100644 (file)
@@ -468,6 +468,7 @@ docppline(char *line, int *lineno, char **fname)
        *p = 0;
        if (*file == 0) {
                *fname = NULL;
+               free(file);
        } else {
                *fname = file;
        }