add: free leaked pathspec after add_files_to_cache()