Commit 37c41004 by Serge Hallyn

coverity: make sure not to close file handle twice

parent aaf901be
...@@ -334,6 +334,7 @@ int main(int argc, char *argv[]) ...@@ -334,6 +334,7 @@ int main(int argc, char *argv[])
goto out; goto out;
} }
fclose(pid_fp); fclose(pid_fp);
pid_fp = NULL;
} }
if (my_args.close_all_fds) if (my_args.close_all_fds)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment