From 46f036d3231bc99cf37c7cabf82757d3c28c5cff Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 8 May 2019 16:58:07 +0200 Subject: [PATCH] s4:torture: Do not free full_name before we printed it Found by GCC 9. Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison --- source4/torture/vfs/fruit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/torture/vfs/fruit.c b/source4/torture/vfs/fruit.c index 43f5167bd11..45c7aaac7a3 100644 --- a/source4/torture/vfs/fruit.c +++ b/source4/torture/vfs/fruit.c @@ -1163,11 +1163,11 @@ static bool check_stream(struct smb2_tree *tree, status = smb2_create(tree, mem_ctx, &create); if (!NT_STATUS_IS_OK(status)) { - TALLOC_FREE(full_name); if (value == NULL) { return true; } torture_comment(tctx, "Unable to open stream %s\n", full_name); + TALLOC_FREE(full_name); return false; } -- 2.47.3