mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 22:55:47 +00:00
index: fix memory leak
We need really free vectors on index freeing, not only clear. Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
This commit is contained in:
parent
5c6ae00999
commit
26b1b15767
@ -196,6 +196,8 @@ void git_index_free(git_index *index)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
git_index_clear(index);
|
git_index_clear(index);
|
||||||
|
git_vector_free(&index->entries);
|
||||||
|
git_vector_free(&index->unmerged);
|
||||||
|
|
||||||
free(index->index_file_path);
|
free(index->index_file_path);
|
||||||
free(index);
|
free(index);
|
||||||
|
Loading…
Reference in New Issue
Block a user