Commit 9c5d4b2e807cdbb83cf55868700b0387cd4e8c41

Carlos Martín Nieto 2013-04-30T12:05:16

remote: fix a leak when dwim'ing refspecs

1
2
3
4
5
6
7
8
9
10
11
12
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;
 }