From 95639dbb9bc912b05652468346f206355345e41b Mon Sep 17 00:00:00 2001 From: Jeff Hostetler Date: Fri, 12 Jun 2015 08:50:48 -0700 Subject: [PATCH] Fix memory leak on windows in diriter. --- src/path.c | 2 ++ 1 file changed, 2 insertions(+) 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;