devenum: Remove redundant NULL checks before CoTaskMemFree().

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-07-08 10:10:57 +02:00 committed by Alexandre Julliard
parent afe0ba175c
commit cf3d957950
1 changed files with 3 additions and 3 deletions

View File

@ -262,8 +262,8 @@ static void DEVENUM_ReadPinTypes(HKEY hkeyPinKey, REGFILTERPINS *rgPin)
error_cleanup_types:
if (clsMajorType) CoTaskMemFree(clsMajorType);
if (clsMinorType) CoTaskMemFree(clsMinorType);
CoTaskMemFree(clsMajorType);
CoTaskMemFree(clsMinorType);
}
RegCloseKey(hkeyMajorType);
@ -358,7 +358,7 @@ static void DEVENUM_ReadPins(HKEY hkeyFilterClass, REGFILTER2 *rgf2)
error_cleanup:
RegCloseKey(hkeyPinKey);
if (rgPin->strName) CoTaskMemFree(rgPin->strName);
CoTaskMemFree(rgPin->strName);
}
RegCloseKey(hkeyPins);