Fix segfault.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 30 Sep 2008 02:22:54 +0000 (04:22 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 30 Sep 2008 02:22:54 +0000 (04:22 +0200)
source4/smbd/service_stream.c

index 1240382944edcc57540e354b4608c47ed5dbf7ea..ce5b6519a11ddb493caceb64be0de93a04003651 100644 (file)
@@ -78,8 +78,8 @@ void stream_terminate_connection(struct stream_connection *srv_conn, const char
 
        talloc_free(srv_conn->event.fde);
        srv_conn->event.fde = NULL;
-       talloc_free(srv_conn);
        model_ops->terminate(event_ctx, srv_conn->lp_ctx, reason);
+       talloc_free(srv_conn);
 }
 
 /**