[s4] possible memleak in torture vfs-fruit
[amitay/samba.git] / source4 / torture / vfs / fruit.c
index 94cbf27767793b3032ff6b6fa084ac172b397656..01d2890e17d5169c2167933de2fc77969bffe6b8 100644 (file)
@@ -1824,6 +1824,7 @@ static bool check_stream(struct smb2_tree *tree,
        status = smb2_create(tree, mem_ctx, &create);
        if (!NT_STATUS_IS_OK(status)) {
                if (value == NULL) {
+                       TALLOC_FREE(full_name);
                        return true;
                }
                torture_comment(tctx, "Unable to open stream %s\n", full_name);