summaryrefslogtreecommitdiff
path: root/source4/smbd
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-13 23:09:59 +1100
committerAndrew Tridgell <tridge@samba.org>2010-02-13 23:12:29 +1100
commitf69135e0e985200d62d4618b742bd642ecfdbf31 (patch)
tree605e030219030b959c1dfc111012a27dad213658 /source4/smbd
parentda86f08605f8ec9fa6d3e1c122ec47309deef994 (diff)
downloadsamba-f69135e0e985200d62d4618b742bd642ecfdbf31.tar.gz
s4-smbd: fix crash in notify code on client termination
We need to free the lp_ctx after we free the event context, otherwise the teardown code in the notify backend dies when it tries to use the iconv_convenience ptr Fixes bug 7053
Diffstat (limited to 'source4/smbd')
-rw-r--r--source4/smbd/process_standard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/smbd/process_standard.c b/source4/smbd/process_standard.c
index 145cbc0a2bf..dfa4fa6b1c7 100644
--- a/source4/smbd/process_standard.c
+++ b/source4/smbd/process_standard.c
@@ -225,12 +225,12 @@ _NORETURN_ static void standard_terminate(struct tevent_context *ev, struct load
{
DEBUG(2,("standard_terminate: reason[%s]\n",reason));
+ talloc_free(ev);
+
/* this reload_charcnv() has the effect of freeing the iconv context memory,
which makes leak checking easier */
reload_charcnv(lp_ctx);
- talloc_free(ev);
-
/* terminate this process */
exit(0);
}