aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Funni <gfunni234@gmail.com>2025-12-18 15:49:12 +0000
committerJunio C Hamano <gitster@pobox.com>2025-12-19 12:51:44 +0900
commit12f0be085701472f634a71ffe1416334c4869267 (patch)
tree722a91844da0b04ca132d6f3ea74173bb4218048
parenta1cf0cf13ab3a659ac77b7d749d6e5b11dc0142b (diff)
downloadgit-12f0be085701472f634a71ffe1416334c4869267.tar.xz
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>
-rw-r--r--repository.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/repository.c b/repository.c
index 1a6a62bbd0..faa3fc2393 100644
--- a/repository.c
+++ b/repository.c
@@ -353,7 +353,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);
FREE_AND_NULL(cache->merge_mode);