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

source4/torture/rpc/samr.c

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