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 <gfunni234@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Greg Funni committed Dec 18, 2025 at 15:49 UTC 12f0be085701472f634a71ffe1416334c4869267
1 file changed -1
repository.c
-1
@@ -352,7 +352,6 @@ out:
352
353 static void repo_clear_path_cache(struct repo_path_cache *cache)
354 {
355 - FREE_AND_NULL(cache->squash_msg);
355 FREE_AND_NULL(cache->squash_msg);
356 FREE_AND_NULL(cache->merge_msg);
357 FREE_AND_NULL(cache->merge_rr);