Module: wine Branch: master Commit: 4f73fe3a09982e028eba061900415a30df39c93f URL: http://source.winehq.org/git/wine.git/?a=commit;h=4f73fe3a09982e028eba061900...
Author: Rob Shearman robertshearman@gmail.com Date: Sun Nov 29 10:54:42 2009 +0000
oleaut32: Free the correct pointer on error in TLB_AllocAndInitVarDesc.
---
dlls/oleaut32/typelib.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 8f552dc..3095d4f 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -5377,7 +5377,7 @@ static HRESULT TLB_AllocAndInitVarDesc( const VARDESC *src, VARDESC **dest_ptr ) hr = VariantCopy(dest->u.lpvarValue, src->u.lpvarValue); if (FAILED(hr)) { - SysFreeString((BSTR)dest_ptr); + SysFreeString((BSTR)dest); return hr; } }