diff --git a/src/path.c b/src/path.c index 02917607a..0ee3efad7 100644 --- a/src/path.c +++ b/src/path.c @@ -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;