Merge pull request #3215 from jeffhostetler/windows_leak_diriter

Fix memory leak on windows in diriter.
This commit is contained in:
Carlos Martín Nieto 2015-06-12 18:35:18 +02:00
commit f2dec48118

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;