Commit 07c06f7a83640e11d6be13a87f02e986ecc6e4b3

Russell Belfer 2012-08-24T14:24:33

Fix memory leak in cp_r

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/fileops.c b/src/fileops.c
index eecfc28..76ef8c9 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -700,6 +700,7 @@ int git_futils_cp_r(
 	error = _cp_r_callback(&info, &path);
 
 	git_buf_free(&path);
+	git_buf_free(&info.to);
 
 	return error;
 }