[Bug 26051] wintrust/softpub tests show a few leaks under valgrind

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Feb 10 09:44:24 CST 2011


http://bugs.winehq.org/show_bug.cgi?id=26051

--- Comment #1 from Juan Lang <juan_lang at yahoo.com> 2011-02-10 09:44:24 CST ---
Yes, they do, and they're somewhat unavoidable.  The function pointers being
tested implicitly allocate memory, but there's no explicit interface for
freeing the memory they allocate.

Ordinarily, callers are expected to call WinVerifyTrust twice, once to verify
an object and a second time to release all memory allocated in the process. 
These function pointers are used by WinVerifyTrust to do their job.  The
function pointers should be tested independently of WinVerifyTrust, but since
there's no interface for freeing the memory they allocate, it's hard to do so
in the context of the test.

I could make assumptions about how the memory should be freed, but I suspect
it's better just to suppress most of the errors, since any application that
called the functions directly would also encounter leaks.  I'll send in a fix
for one leak that isn't of this sort.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list