From fd92dc0bd11c0932b411dbea3d5b2070b1ab5c22 Mon Sep 17 00:00:00 2001 From: Kitsu Date: Fri, 6 Jan 2017 13:33:54 +0300 Subject: [PATCH] Remove filename leak --- libr/debug/p/native/w32.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libr/debug/p/native/w32.c b/libr/debug/p/native/w32.c index a7b5f79bbca2b..6a313b839760e 100755 --- a/libr/debug/p/native/w32.c +++ b/libr/debug/p/native/w32.c @@ -466,6 +466,7 @@ static char *get_file_name_from_handle (HANDLE handle_file) { void* map = MapViewOfFile (handle_file_map, FILE_MAP_READ, 0, 0, 1); if (!map) { + free (filename); CloseHandle (handle_file_map); return NULL; }