From fea05710342927f321292072c5af4138e477fe76 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 11 Oct 2004 09:23:19 +0000 Subject: r2909: fix some RAW-SEARCH torture mem leaks (This used to be commit 75ca5ba5091c9046159531b917ff17a519013556) --- source4/torture/raw/search.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'source4/torture') diff --git a/source4/torture/raw/search.c b/source4/torture/raw/search.c index e5c682575c..2d73c8e34e 100644 --- a/source4/torture/raw/search.c +++ b/source4/torture/raw/search.c @@ -629,7 +629,7 @@ static BOOL test_many_files(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) for (t=0;tcount) { if (exist) { printf("failed: '%s' should exist with attribute %s\n", - name, attrib_string(NULL, attrib)); + name, attrib_string(result->list, attrib)); return False; } return True; @@ -713,7 +713,7 @@ static BOOL check_result(struct multiple_result *result, const char *name, BOOL if (!exist) { printf("failed: '%s' should NOT exist (has attribute %s)\n", - name, attrib_string(NULL, result->list[i].both_directory_info.attrib)); + name, attrib_string(result->list, result->list[i].both_directory_info.attrib)); return False; } @@ -763,6 +763,7 @@ static BOOL test_modify_search(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) printf("pulling the first 10 files\n"); ZERO_STRUCT(result); + result.mem_ctx = talloc(mem_ctx, 0); io.generic.level = RAW_SEARCH_BOTH_DIRECTORY_INFO; io.t2ffirst.in.search_attrib = 0; -- cgit