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>
This commit is contained in:
Greg Funni
2025-12-18 15:49:12 +00:00
committed by Junio C Hamano
parent a1cf0cf13a
commit 12f0be0857

View File

@@ -352,7 +352,6 @@ out:
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);