From 74c3a4a7e72f67aa2d415e41f6666a19518f6de2 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Sat, 27 Jun 2015 23:14:11 +0300 Subject: [PATCH] winecfg: Fix a leak when applying drive changes (Coverity). --- programs/winecfg/drive.c | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/winecfg/drive.c b/programs/winecfg/drive.c index 8cad14a9c2d..b5ef69d4230 100644 --- a/programs/winecfg/drive.c +++ b/programs/winecfg/drive.c @@ -367,6 +367,7 @@ void apply_drive_changes(void) } else WINE_WARN( "failed to set drive %c: to %s type %u err %u\n", 'a' + i, wine_dbgstr_a(drives[i].unixpath), drives[i].type, GetLastError() ); + HeapFree( GetProcessHeap(), 0, ioctl ); } CloseHandle( mgr ); }