git-apply: Do not free the wrong buffer when we convert the data for writeout