Skip to content

Commit 12f0be0

Browse files
LumioseSilgitster
authored andcommitted
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>
1 parent a1cf0cf commit 12f0be0

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

repository.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,6 @@ int repo_submodule_init(struct repository *subrepo,
352352

353353
static void repo_clear_path_cache(struct repo_path_cache *cache)
354354
{
355-
FREE_AND_NULL(cache->squash_msg);
356355
FREE_AND_NULL(cache->squash_msg);
357356
FREE_AND_NULL(cache->merge_msg);
358357
FREE_AND_NULL(cache->merge_rr);

0 commit comments

Comments
 (0)