[patch] resource leakage in KJS

Germain Garand germain at ebooksfrance.org
Wed Mar 8 22:03:50 GMT 2006


Dear KJS hackers,

I was investigating some compulsive CPU hogging building up over time and 
found out KJS::Debugger::attach doesn't check if an interpreter is already in 
its list. Apparently, it would happily add it over and over, after iterating 
the whole list of already attached interpreters.

When inline statements are repeteadly evaluated the effect rapidly becomes 
quite bad - and IIUC the pollution seems process wide.

So does attached patch looks OK or should that be fixed elsewhere?

Greetings,
Germain


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: text/x-diff
Size: 521 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20060308/67160274/attachment.diff>


More information about the kfm-devel mailing list