@leroysheep / LeeRoySheep / commits / 12f0be0857

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
index 1a6a62bbd0..faa3fc2393 100644 --- a/repository.c +++ b/repository.c @@ -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);