#222 Memory leak in ObjectFactory::GetObjectById

Version 5.10
closed-fixed
5
2013-04-20
2012-06-14
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
     
  • Michael Chisholm

    Fixed in r1633.

     
  • Michael Chisholm

    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks