Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#222 Memory leak in ObjectFactory::GetObjectById

Version 5.10
closed-fixed
5
2013-04-20
2012-06-14
Miroslaw Zurek
No

I found two memory leaks in the ObjectFactory::GetObjectById. There are two methods:

if(setElm == NULL) {
absObject = new Object();
absObject->Parse(objectElm);
} else {
absObject = new SetObject();
absObject->Parse(objectElm);
}

Sometimes absObject->Parse throws an exception so memory allocated above isn't freed.

Discussion

  • Miroslaw Zurek
    Miroslaw Zurek
    2012-06-14

    • assigned_to: nobody --> mirz
     
  • Fixed in r1633.

     
    • status: open --> closed-fixed