summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-06-12 18:35:18 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2015-06-12 18:35:18 +0200
commitf2dec481189202e7b026518206b84f862a980768 (patch)
tree557c909a09e30b97a451a657371efef4304db2e7
parent6995b18ad262a2d776fad525a779941b70d897d2 (diff)
parent95639dbb9bc912b05652468346f206355345e41b (diff)
downloadlibgit2-f2dec481189202e7b026518206b84f862a980768.tar.gz
Merge pull request #3215 from jeffhostetler/windows_leak_diriter
Fix memory leak on windows in diriter.
-rw-r--r--src/path.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/path.c b/src/path.c
index 02917607a..0ee3efad7 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;