summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-02-14 08:07:29 +0100
committerVolker Lendecke <vl@samba.org>2009-02-14 08:05:26 +0100
commit8dbfd59adcb5dd343466ced6e005ee53babdca41 (patch)
treeebd7c1c1e1120ed3f10f32b94d97a8126534bd88 /source3/smbd
parent85eccea0b435e4b3c6fb4da6f0a7ea6e9b28b070 (diff)
downloadsamba-8dbfd59adcb5dd343466ced6e005ee53babdca41.tar.gz
samba-8dbfd59adcb5dd343466ced6e005ee53babdca41.tar.bz2
samba-8dbfd59adcb5dd343466ced6e005ee53babdca41.zip
Fix a valgrind error
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/server.c6
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(