fix valgrind warning created by recent pidfile fix (#8235)

This isn't a leak, just an warning due to unreachable
allocation on the fork child.
Problem created by 92a483b
This commit is contained in:
Oran Agra 2020-12-23 12:55:05 +02:00 committed by GitHub
parent b51f5da314
commit 2426aaa099
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -5203,6 +5203,7 @@ void closeClildUnusedResourceAfterFork() {
/* Clear server.pidfile, this is the parent pidfile which should not
* be touched (or deleted) by the child (on exit / crash) */
zfree(server.pidfile);
server.pidfile = NULL;
}