s4-torture: fixed a pipe leak
authorAndrew Tridgell <tridge@samba.org>
Tue, 20 Oct 2009 05:34:42 +0000 (16:34 +1100)
committerJeremy Allison <jra@samba.org>
Wed, 21 Oct 2009 23:53:35 +0000 (16:53 -0700)
The RPC-SAMR-PASSWORDS* tests could leak RPC pipes, causing an
overallocation of fd's on the server

source4/torture/rpc/samr.c

index b3bc5cf7efe46cdfc4b8aaa14aeef041d56f3a01..eb3c86ef26ff6868bf9620b6f8b49ef35872cef3 100644 (file)
@@ -3275,6 +3275,8 @@ static bool test_SetPassword_pwdlastset(struct dcerpc_pipe *p,
 #undef TEST_SET_LEVELS
 #undef TEST_QUERY_LEVELS
 
+       talloc_free(np);
+
        return ret;
 }