Fix for memory leak issue in indexer.c, that surfaces on windows

This resolves issue libgit2/libgit2#2715
By "not leave comments" I meant "don't leave commented out code". Do leave comments. Everywhere. All the time.