Module: wine Branch: master Commit: 55d811351ab1c7212b513d21995867db61fc65d3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=55d811351ab1c7212b513d2199...
Author: Michael Stefaniuc mstefani@redhat.de Date: Wed Aug 1 01:14:56 2012 +0200
ole32: Remove superfluous NULL pointer check before free (Smatch).
---
dlls/ole32/ole2.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c index 74fb43e..b857a3c 100644 --- a/dlls/ole32/ole2.c +++ b/dlls/ole32/ole2.c @@ -2953,8 +2953,7 @@ HRESULT WINAPI PropVariantClear(PROPVARIANT * pvar) /* [in/out] */ CoTaskMemFree(pvar->u.blob.pBlobData); break; case VT_BSTR: - if (pvar->u.bstrVal) - PropSysFreeString(pvar->u.bstrVal); + PropSysFreeString(pvar->u.bstrVal); break; case VT_CF: if (pvar->u.pclipdata)