[PATCH] git-local-fetch: Fix error checking and leak in setup_indices()