diff options
| author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2022-06-15 23:35:42 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-06-16 13:22:03 -0700 |
| commit | 652891de4ff164d545daa5472ab67f4f9d41319b (patch) | |
| tree | e3fda800a7388b7a8022cc97b49bf041592fcb2c /commit.c | |
| parent | submodule--helper: avoid memory leak when fetching submodules (diff) | |
| download | git-652891de4ff164d545daa5472ab67f4f9d41319b.tar.gz git-652891de4ff164d545daa5472ab67f4f9d41319b.zip | |
read_index_from(): avoid memory leak
In 998330ac2e7c (read-cache: look for shared index files next to the
index, too, 2021-08-26), we added code that allocates memory to store
the base path of a shared index, but we never released that memory.
Reported by Coverity.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions
