double free in builtin-update-index.c