Lionel Debroux : dplayx: Fixed memory leak in dplay.c (found by
Smatch).
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Sep 11 07:28:38 CDT 2007
Module: wine
Branch: master
Commit: cd6472f79479185669609c34d70f629e3a30f747
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cd6472f79479185669609c34d70f629e3a30f747
Author: Lionel Debroux <lionel_debroux at yahoo.fr>
Date: Mon Sep 3 12:38:42 2007 +0200
dplayx: Fixed memory leak in dplay.c (found by Smatch).
---
dlls/dplayx/dplay.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/dlls/dplayx/dplay.c b/dlls/dplayx/dplay.c
index 17ebd00..1688614 100644
--- a/dlls/dplayx/dplay.c
+++ b/dlls/dplayx/dplay.c
@@ -5292,7 +5292,6 @@ static HRESULT DirectPlayEnumerateAW(LPDPENUMDPCALLBACKA lpEnumCallbackA,
{
HeapFree(GetProcessHeap(), 0, descriptionA);
max_sizeOfDescriptionA = sizeOfDescription;
- descriptionA = HeapAlloc(GetProcessHeap(), 0, max_sizeOfDescriptionA);
}
descriptionA = HeapAlloc(GetProcessHeap(), 0, sizeOfDescription);
RegQueryValueExA(hkServiceProvider, "DescriptionA",
@@ -5315,7 +5314,6 @@ static HRESULT DirectPlayEnumerateAW(LPDPENUMDPCALLBACKA lpEnumCallbackA,
{
HeapFree(GetProcessHeap(), 0, descriptionW);
max_sizeOfDescriptionW = sizeOfDescription;
- descriptionW = HeapAlloc(GetProcessHeap(), 0, max_sizeOfDescriptionW);
}
descriptionW = HeapAlloc(GetProcessHeap(), 0, sizeOfDescription);
RegQueryValueExW(hkServiceProvider, descW,
More information about the wine-cvs
mailing list