mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-24 21:28:06 +00:00
Fix memory leak on windows in diriter.
This commit is contained in:
parent
82a7a24cf4
commit
95639dbb9b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user