From: Andreas Schneider Date: Wed, 8 May 2019 14:58:07 +0000 (+0200) Subject: s4:torture: Do not free full_name before we printed it X-Git-Tag: tdb-1.4.1~157 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=46f036d3231bc99cf37c7cabf82757d3c28c5cff;p=thirdparty%2Fsamba.git s4:torture: Do not free full_name before we printed it Found by GCC 9. Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison --- 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; }