Commit 212b379a by Kirill A. Shutemov Committed by Vicent Marti

index: do not free vectors twice in git_index_free()

git_index_clear() frees index->entries and index->unmerged. No need to
free it once again.

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
parent d4760a42
......@@ -202,8 +202,6 @@ void git_index_free(git_index *index)
return;
git_index_clear(index);
git_vector_free(&index->entries);
git_vector_free(&index->unmerged);
free(index->index_file_path);
free(index);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment