Skip to content

Commit e2e373b

Browse files
cswaregitster
authored andcommitted
refs/files: prevent memory leak by freeing packed_ref_store
This complements 64a6dd8 (refs: implement removal of ref storages, 2024-06-06). Signed-off-by: Sven Strickroth <[email protected]> Acked-by: Patrick Steinhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 25a0023 commit e2e373b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

refs/files-backend.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ static void files_ref_store_release(struct ref_store *ref_store)
155155
free_ref_cache(refs->loose);
156156
free(refs->gitcommondir);
157157
ref_store_release(refs->packed_ref_store);
158+
free(refs->packed_ref_store);
158159
}
159160

160161
static void files_reflog_path(struct files_ref_store *refs,

0 commit comments

Comments
 (0)