Module: wine Branch: master Commit: 6d6c3e5d81a6f93800982498bd206ec2fc8be23f URL: http://source.winehq.org/git/wine.git/?a=commit;h=6d6c3e5d81a6f93800982498bd...
Author: Piotr Caban piotr@codeweavers.com Date: Tue Jul 30 15:19:37 2013 +0200
oleaut32: Don't leak BSTRs allocated in string_list and name_list.
---
dlls/oleaut32/typelib.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 1041e1b..b0cfc88 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -4594,11 +4594,13 @@ static ULONG WINAPI ITypeLib2_fnRelease( ITypeLib2 *iface)
LIST_FOR_EACH_ENTRY_SAFE(tlbstr, tlbstr_next, &This->string_list, TLBString, entry) { list_remove(&tlbstr->entry); + SysFreeString(tlbstr->str); heap_free(tlbstr); }
LIST_FOR_EACH_ENTRY_SAFE(tlbstr, tlbstr_next, &This->name_list, TLBString, entry) { list_remove(&tlbstr->entry); + SysFreeString(tlbstr->str); heap_free(tlbstr); }