Skip to content

Commit

Permalink
Remove filename leak
Browse files Browse the repository at this point in the history
  • Loading branch information
l4l committed Jan 6, 2017
1 parent ec46f08 commit fd92dc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libr/debug/p/native/w32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fd92dc0

Please # to comment.