Commit f2dec481 by Carlos Martín Nieto

Merge pull request #3215 from jeffhostetler/windows_leak_diriter

Fix memory leak on windows in diriter.
parents 6995b18a 95639dbb
...@@ -1231,6 +1231,8 @@ void git_path_diriter_free(git_path_diriter *diriter) ...@@ -1231,6 +1231,8 @@ void git_path_diriter_free(git_path_diriter *diriter)
if (diriter == NULL) if (diriter == NULL)
return; return;
git_buf_free(&diriter->path_utf8);
if (diriter->handle != INVALID_HANDLE_VALUE) { if (diriter->handle != INVALID_HANDLE_VALUE) {
FindClose(diriter->handle); FindClose(diriter->handle);
diriter->handle = INVALID_HANDLE_VALUE; diriter->handle = INVALID_HANDLE_VALUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment