]> git.ipfire.org Git - thirdparty/git.git/commitdiff
repository: remove duplicate free of cache->squash_msg
authorGreg Funni <gfunni234@gmail.com>
Thu, 18 Dec 2025 15:49:12 +0000 (15:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Dec 2025 03:51:44 +0000 (12:51 +0900)
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>
repository.c

index 1a6a62bbd03a5dc4fdade3eb45ea2696968abc23..faa3fc23932df094efb63f16dc5af4f2c876d63f 100644 (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);