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 4192faa (cherry picked from commit 997c2dc7ec652ac49a6f1a3a5bb79627aff1a545)
This commit is contained in:
parent
b0a00784da
commit
426a976a29
@ -5088,6 +5088,7 @@ void closeClildUnusedResourceAfterFork() {
|
|||||||
|
|
||||||
/* Clear server.pidfile, this is the parent pidfile which should not
|
/* Clear server.pidfile, this is the parent pidfile which should not
|
||||||
* be touched (or deleted) by the child (on exit / crash) */
|
* be touched (or deleted) by the child (on exit / crash) */
|
||||||
|
zfree(server.pidfile);
|
||||||
server.pidfile = NULL;
|
server.pidfile = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user