Michael Stefaniuc : oledb32: Remove redundant NULL check before CoTaskMemFree().

Alexandre Julliard julliard at winehq.org
Thu Apr 16 16:45:12 CDT 2020


Module: wine
Branch: master
Commit: c0041d70c46be6f7a69a61c0143c9c603cd6760f
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=c0041d70c46be6f7a69a61c0143c9c603cd6760f

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Thu Apr 16 00:08:28 2020 +0200

oledb32: Remove redundant NULL check before CoTaskMemFree().

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at 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);




More information about the wine-cvs mailing list