patch: free git2 allocated data with free