GNOME Bugzilla – Bug 562230
possible memory leak in xmlGetGlobalState
Last modified: 2009-01-18 15:04:55 UTC
Please describe the problem: possible memory leak in the function xmlGetGlobalState(). When the return value from p = (xmlGlobalStateCleanupHelperParams *) malloc(sizeof(xmlGlobalStateCleanupHelperParams)); is zero so the function return with error but not freed xmlGlobalState *tsd witch is priv. allocated. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 123361 [details] [review] patch Fix: free memory in xmlFreeGlobalState when p == NULL
Okay, makes perfect sense, patch applied and commited, thanks a lot ! Daniel