svn commit: samba r10529 - in
branches/SAMBA_4_0/source/libcli/composite: .
metze at samba.org
metze at samba.org
Tue Sep 27 10:29:14 GMT 2005
Author: metze
Date: 2005-09-27 10:29:13 +0000 (Tue, 27 Sep 2005)
New Revision: 10529
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10529
Log:
fix a crash bug in full async code the uses the composite_trigger_done() code
the event subsystem wants to free timed_events!
metze
Modified:
branches/SAMBA_4_0/source/libcli/composite/composite.c
Changeset:
Modified: branches/SAMBA_4_0/source/libcli/composite/composite.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/composite/composite.c 2005-09-27 10:00:27 UTC (rev 10528)
+++ branches/SAMBA_4_0/source/libcli/composite/composite.c 2005-09-27 10:29:13 UTC (rev 10529)
@@ -52,6 +52,12 @@
{
struct composite_context *c = talloc_get_type(ptr, struct composite_context);
if (c->async.fn) {
+ /*
+ * the event is a child of req,
+ * and req will be free'ed by the callback fn
+ * but the events code wants to free the event itself
+ */
+ talloc_steal(ev, te);
c->async.fn(c);
}
}
More information about the samba-cvs
mailing list