Fix memory leak in prepend_to_path (git.c).