]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/worktree.c
add UNLEAK annotation for reducing leak false positives
[thirdparty/git.git] / builtin / worktree.c
index c98e2ce5f57c1f41ccaf90041a1a22233ae75551..de26849f5551a12aac16e4121c7024ebb40502d2 100644 (file)
@@ -381,6 +381,8 @@ static int add(int ac, const char **av, const char *prefix)
                branch = opts.new_branch;
        }
 
+       UNLEAK(path);
+       UNLEAK(opts);
        return add_worktree(path, branch, &opts);
 }