From 13c1c8ef3da5385cb8d0130bdf9c9abe0e43b49f Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 27 Mar 2011 17:43:11 +0200 Subject: s3: Fix a memleak --- source3/torture/torture.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3') diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 1b6ab9bb8b..c6c0f62896 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -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 { -- cgit