From ac2abd592dd128d34cd707e19361a8ea3b98a279 Mon Sep 17 00:00:00 2001 From: Greg Funni Date: Thu, 18 Dec 2025 10:22:42 -0500 Subject: [PATCH] repository: remove duplicate free of cache->squash_msg Thankfully, it is set to NULL, so no security consequences. However, this is still a mistake that must be rectified. Signed-off-by: Greg Funni --- repository.c | 1 - 1 file changed, 1 deletion(-) diff --git a/repository.c b/repository.c index 863f24411b7bf9..c7e75215ac2ab2 100644 --- a/repository.c +++ b/repository.c @@ -349,7 +349,6 @@ int repo_submodule_init(struct repository *subrepo, static void repo_clear_path_cache(struct repo_path_cache *cache) { - FREE_AND_NULL(cache->squash_msg); FREE_AND_NULL(cache->squash_msg); FREE_AND_NULL(cache->merge_msg); FREE_AND_NULL(cache->merge_rr);