http://bugs.winehq.org/show_bug.cgi?id=27168
--- Comment #31 from Ilya Konovalov aragaer@gmail.com 2011-09-21 09:29:41 CDT --- Created an attachment (id=36492) --> (http://bugs.winehq.org/attachment.cgi?id=36492) Store intermediate certificates to in-memory store and properly free it later
Here's the updated patch. Now it properly tracks ref counters on store and uses it to clean up everything. No hacking.
Unfortunately it doesn't properly track ref counters on collections and as result it frees "world" collection too early and fails to build a chain. Will focus on collections now.