diff options
| author | Adrian Ratiu <adrian.ratiu@collabora.com> | 2026-04-10 12:05:56 +0300 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-04-10 07:58:52 -0700 |
| commit | 8d2ffcf4b4a3a55c56c57c8df617516c25d98380 (patch) | |
| tree | d88fac54471bb4aadc65ac5395a0363b26cb2194 /contrib/persistent-https | |
| parent | 2226ffaacd93d3fe5554687a70d9190d72596f96 (diff) | |
| download | git-8d2ffcf4b4a3a55c56c57c8df617516c25d98380.tar.gz git-8d2ffcf4b4a3a55c56c57c8df617516c25d98380.zip | |
repository: fix repo_init() memleak due to missing _clear()
There is an old pre-existing memory leak in repo_init() due to failing
to call clear_repository_format() in the error case.
It went undetected because a specific bug is required to trigger it:
enable a v1 extension in a repository with format v0. Obviously this
can only happen in a development environment, so it does not trigger
in normal usage, however the memleak is real and needs fixing.
Fix it by also calling clear_repository_format() in the error case.
Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions
