Commit 95639dbb9bc912b05652468346f206355345e41b

Jeff Hostetler 2015-06-12T08:50:48

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;