mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-25 01:37:09 +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)
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user