Found by GCC 9.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13937
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit
46f036d3231bc99cf37c7cabf82757d3c28c5cff)
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;
}