Michael Stefaniuc : oledb32: Remove redundant NULL check before CoTaskMemFree().
Module: wine Branch: master Commit: c0041d70c46be6f7a69a61c0143c9c603cd6760f URL: https://source.winehq.org/git/wine.git/?a=commit;h=c0041d70c46be6f7a69a61c01... Author: Michael Stefaniuc <mstefani(a)winehq.org> Date: Thu Apr 16 00:08:28 2020 +0200 oledb32: Remove redundant NULL check before CoTaskMemFree(). Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/oledb32/dslocator.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/oledb32/dslocator.c b/dlls/oledb32/dslocator.c index 8a7f2d134c..86a334bea0 100644 --- a/dlls/oledb32/dslocator.c +++ b/dlls/oledb32/dslocator.c @@ -72,8 +72,7 @@ static void destroy_datasource(struct datasource *data) CoTaskMemFree(data->propinfoset->rgPropertyInfos); CoTaskMemFree(data->propinfoset); } - if (data->description) - CoTaskMemFree(data->description); + CoTaskMemFree(data->description); if (data->provider) IDBProperties_Release(data->provider);
participants (1)
-
Alexandre Julliard