summaryrefslogtreecommitdiff
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
parentda86f08605f8ec9fa6d3e1c122ec47309deef994 (diff)
downloadsamba-f69135e0e985200d62d4618b742bd642ecfdbf31.tar.gz
samba-f69135e0e985200d62d4618b742bd642ecfdbf31.tar.bz2
samba-f69135e0e985200d62d4618b742bd642ecfdbf31.zip
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
-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 145cbc0a2b..dfa4fa6b1c 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);
}