rpc_server: Fix a memleak on error exit
authorVolker Lendecke <vl@samba.org>
Sun, 27 Oct 2013 14:31:44 +0000 (15:31 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 28 Oct 2013 09:20:35 +0000 (10:20 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Mon Oct 28 10:20:35 CET 2013 on sn-devel-104

source3/rpc_server/rpc_ep_register.c

index 42c5d94..f576590 100644 (file)
@@ -193,6 +193,7 @@ static void rpc_ep_monitor_loop(struct tevent_req *subreq)
        ok = tevent_wakeup_recv(subreq);
        TALLOC_FREE(subreq);
        if (!ok) {
+               talloc_free(tmp_ctx);
                talloc_free(state);
                return;
        }