programs/wineconsole: Free registry key name (valgrind)
Bruno Jesus
00cpxxx at gmail.com
Sat Jul 12 14:02:13 CDT 2014
Fixes https://bugs.winehq.org/show_bug.cgi?id=36128
-------------- next part --------------
diff --git a/programs/wineconsole/wineconsole.c b/programs/wineconsole/wineconsole.c
index 7698521..a5a8909 100644
--- a/programs/wineconsole/wineconsole.c
+++ b/programs/wineconsole/wineconsole.c
@@ -519,6 +519,8 @@ static void WINECON_Delete(struct inner_data* data)
if (data->hConIn) CloseHandle(data->hConIn);
if (data->hConOut) CloseHandle(data->hConOut);
if (data->hSynchro) CloseHandle(data->hSynchro);
+ /* registry name allocated in registry.c/WINECON_CreateKeyName */
+ HeapFree(GetProcessHeap(), 0, data->curcfg.registry);
HeapFree(GetProcessHeap(), 0, data->cells);
HeapFree(GetProcessHeap(), 0, data);
}
More information about the wine-patches
mailing list