remote: fix a leak when dwim'ing refspecs
diff --git a/src/remote.c b/src/remote.c
index 153c934..08f56cd 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -692,6 +692,7 @@ static int dwim_refspecs(git_vector *refspecs, git_vector *refs)
spec->dwim = 1;
}
+ git_buf_free(&buf);
return 0;
}