Commit 92be7908 by Carlos Martín Nieto

indexer: return immediately if passed a NULL value

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
parent 922bc225
......@@ -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);
......
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