1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

Fix a valgrind error

This commit is contained in:
Volker Lendecke 2009-02-14 08:07:29 +01:00
parent 85eccea0b4
commit 8dbfd59adc

View File

@ -367,7 +367,11 @@ static void smbd_accept_connection(struct tevent_context *ev,
descriptors */
close_low_fds(False);
TALLOC_FREE(s->parent);
/*
* Can't use TALLOC_FREE here. Nulling out the argument to it
* would overwrite memory we've just freed.
*/
talloc_free(s->parent);
s = NULL;
if (!reinit_after_fork(