From: Junio C Hamano Date: Thu, 6 Feb 2025 22:56:45 +0000 (-0800) Subject: Merge branch 'ps/leakfixes-0129' X-Git-Tag: v2.49.0-rc0~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5f338eae76ea739954517292b8b057d1b6187926;p=thirdparty%2Fgit.git Merge branch 'ps/leakfixes-0129' A few more leakfixes. * ps/leakfixes-0129: scalar: free result of `remote_default_branch()` unix-socket: fix memory leak when chdir(3p) fails --- 5f338eae76ea739954517292b8b057d1b6187926 diff --cc scalar.c index f24bcd0169,6c47afa4ea..da42b4be0c --- a/scalar.c +++ b/scalar.c @@@ -409,8 -408,9 +409,9 @@@ void load_builtin_commands(const char * static int cmd_clone(int argc, const char **argv) { const char *branch = NULL; + char *branch_to_free = NULL; int full_clone = 0, single_branch = 0, show_progress = isatty(2); - int src = 1; + int src = 1, tags = 1; struct option clone_options[] = { OPT_STRING('b', "branch", &branch, N_(""), N_("branch to checkout after clone")),