diff options
author | Volker Lendecke <vlendec@samba.org> | 2005-10-03 17:36:10 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:39:19 -0500 |
commit | 4a34e81ccc609366089d9a3f6c3a04c228cac8b3 (patch) | |
tree | ae104b79191f97a8df0292cf4b674a4ecd019a46 /source4 | |
parent | 3fece92b9d542b89629032b38f404def0436ef9f (diff) | |
download | samba-4a34e81ccc609366089d9a3f6c3a04c228cac8b3.tar.gz samba-4a34e81ccc609366089d9a3f6c3a04c228cac8b3.tar.bz2 samba-4a34e81ccc609366089d9a3f6c3a04c228cac8b3.zip |
r10690: Fix a bug that metze pointed out: Leaving the "rejecting" destructor around
prevents the memory from being freed.
Thanks,
Volker
(This used to be commit df8eeb01f498568207a4a8d5d12348c473f41799)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/events/events_standard.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/lib/events/events_standard.c b/source4/lib/events/events_standard.c index 146dbc6b22..d521ffa344 100644 --- a/source4/lib/events/events_standard.c +++ b/source4/lib/events/events_standard.c @@ -357,6 +357,7 @@ static void std_event_loop_timer(struct event_context *ev) /* The destructor isn't necessary anymore, we've already removed the * event from the list. */ + talloc_set_destructor(te, NULL); talloc_free(te); } |