diff options
author | Volker Lendecke <vl@samba.org> | 2009-02-14 08:07:29 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-02-14 08:05:26 +0100 |
commit | 8dbfd59adcb5dd343466ced6e005ee53babdca41 (patch) | |
tree | ebd7c1c1e1120ed3f10f32b94d97a8126534bd88 | |
parent | 85eccea0b435e4b3c6fb4da6f0a7ea6e9b28b070 (diff) | |
download | samba-8dbfd59adcb5dd343466ced6e005ee53babdca41.tar.gz samba-8dbfd59adcb5dd343466ced6e005ee53babdca41.tar.bz2 samba-8dbfd59adcb5dd343466ced6e005ee53babdca41.zip |
Fix a valgrind error
-rw-r--r-- | source3/smbd/server.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 5f6783e05c..075e44d319 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -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( |