summaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authorJeff Hostetler <jeffhostetler@me.com>2015-06-12 08:50:48 -0700
committerJeff Hostetler <jeffhostetler@me.com>2015-06-12 08:50:48 -0700
commit95639dbb9bc912b05652468346f206355345e41b (patch)
tree929494f6e959a89a637ec09d4062bbd6f2af2ef2 /src/path.c
parent82a7a24cf4a40ed94a4dc05ee2d91733e506ac1c (diff)
downloadlibgit2-95639dbb9bc912b05652468346f206355345e41b.tar.gz
Fix memory leak on windows in diriter.
Diffstat (limited to 'src/path.c')
-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;