diff options
author | Jeff Hostetler <jeffhostetler@me.com> | 2015-06-12 08:50:48 -0700 |
---|---|---|
committer | Jeff Hostetler <jeffhostetler@me.com> | 2015-06-12 08:50:48 -0700 |
commit | 95639dbb9bc912b05652468346f206355345e41b (patch) | |
tree | 929494f6e959a89a637ec09d4062bbd6f2af2ef2 | |
parent | 82a7a24cf4a40ed94a4dc05ee2d91733e506ac1c (diff) | |
download | libgit2-95639dbb9bc912b05652468346f206355345e41b.tar.gz |
Fix memory leak on windows in diriter.
-rw-r--r-- | src/path.c | 2 |
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; |