s3: Fix a memleak
authorVolker Lendecke <vl@samba.org>
Sun, 27 Mar 2011 15:43:11 +0000 (17:43 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 27 Mar 2011 17:04:11 +0000 (19:04 +0200)
source3/torture/torture.c

index 1b6ab9bb8b14d3ef17b1f1db9488659de4e87695..c6c0f62896ca610423ba9f37823b3167151ac53f 100644 (file)
@@ -1389,6 +1389,8 @@ static bool run_tcon2_test(int dummy)
 
        status = cli_raw_tcon(cli, service, password, "?????", &max_xmit, &cnum);
 
+       SAFE_FREE(service);
+
        if (!NT_STATUS_IS_OK(status)) {
                printf("tcon2 failed : %s\n", nt_errstr(status));
        } else {