mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-13 19:30:37 +00:00
indexer: return immediately if passed a NULL value
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
This commit is contained in:
parent
922bc22532
commit
92be7908bd
@ -385,6 +385,9 @@ void git_indexer_free(git_indexer *idx)
|
||||
struct entry *e;
|
||||
struct git_pack_entry *pe;
|
||||
|
||||
if (idx == NULL)
|
||||
return;
|
||||
|
||||
p_close(idx->pack->mwf.fd);
|
||||
git_vector_foreach(&idx->objects, i, e)
|
||||
free(e);
|
||||
|
Loading…
Reference in New Issue
Block a user