(docppline): Free file string if it is not going to be used.
authordrepper <drepper>
Fri, 7 Apr 2006 04:04:15 +0000 (04:04 +0000)
committerdrepper <drepper>
Fri, 7 Apr 2006 04:04:15 +0000 (04:04 +0000)
sunrpc/rpc_scan.c

index 42ab2ba..af90ef6 100644 (file)
@@ -535,6 +535,7 @@ docppline (const char *line, int *lineno, const char **fname)
   *p = 0;
   if (*file == 0)
     {
+      free (file);
       *fname = NULL;
     }
   else