Commit f2dec481189202e7b026518206b84f862a980768

Carlos Martín Nieto 2015-06-12T18:35:18

Merge pull request #3215 from jeffhostetler/windows_leak_diriter Fix memory leak on windows in diriter.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/path.c b/src/path.c
index 0291760..0ee3efa 100644
--- a/src/path.c
+++ b/src/path.c
@@ -1231,6 +1231,8 @@ void git_path_diriter_free(git_path_diriter *diriter)
 	if (diriter == NULL)
 		return;
 
+	git_buf_free(&diriter->path_utf8);
+
 	if (diriter->handle != INVALID_HANDLE_VALUE) {
 		FindClose(diriter->handle);
 		diriter->handle = INVALID_HANDLE_VALUE;