[PATCH] oledb32: Remove redundant NULL check before CoTaskMemFree()
15 Apr
2020
15 Apr
'20
11:08 p.m.
Signed-off-by: Michael Stefaniuc <mstefani(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); -- 2.25.2
2158
Age (days ago)
2158
Last active (days ago)
0 comments
1 participants
participants (1)
-
Michael Stefaniuc