Fix memory leak on windows in diriter.

This commit is contained in:
Jeff Hostetler 2015-06-12 08:50:48 -07:00
parent 82a7a24cf4
commit 95639dbb9b

View File

@ -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;