RESOLVED FIXED 6101
Leaks in XSLTProcessorImpl due to early exit in failure case
https://bugs.webkit.org/show_bug.cgi?id=6101
Summary Leaks in XSLTProcessorImpl due to early exit in failure case
Eric Seidel (no email)
Reported 2005-12-15 13:33:50 PST
Leaks in XSLTProcessorImpl due to early-exit in failure case After adding two XSLT processor failure cases to the layout tests last week it's now possible to see a leak caused in that code path. The attached patch closes the leak.
Attachments
Proposed patch (1.53 KB, patch)
2005-12-15 13:35 PST, Eric Seidel (no email)
eric: review-
Better fix (3.43 KB, patch)
2005-12-29 20:21 PST, Eric Seidel (no email)
mjs: review+
Eric Seidel (no email)
Comment 1 2005-12-15 13:35:09 PST
Created attachment 5099 [details] Proposed patch
Darin Adler
Comment 2 2005-12-15 21:53:23 PST
Comment on attachment 5099 [details] Proposed patch If the sourceDoc comes back 0, should we be returning true or false? This code returns true. Otherwise, looks fine. I guess I'll say review+.
Eric Seidel (no email)
Comment 3 2005-12-15 22:48:07 PST
Comment on attachment 5099 [details] Proposed patch Bah, my bad. Yeah, it's supposed to return false. I'll init success to false instead when landing.
Eric Seidel (no email)
Comment 4 2005-12-19 14:12:54 PST
Comment on attachment 5099 [details] Proposed patch This is wrong. I have a new patch I'll post.
Eric Seidel (no email)
Comment 5 2005-12-29 20:21:54 PST
Created attachment 5367 [details] Better fix
Note You need to log in before you can comment on or make changes to this bug.