atom feed2 messages in com.googlegroups.gdata-objectivec-clientGDataXMLNode Memory Leaks
FromSent OnAttachments
ctSep 26, 2008 1:31 pm 
Greg RobbinsSep 26, 2008 2:48 pm 
Subject:GDataXMLNode Memory Leaks
From:ct (clea@gmail.com)
Date:Sep 26, 2008 1:31:55 pm
List:com.googlegroups.gdata-objectivec-client

I believe the following are causing memory leaks in GDataXMLNode:

1) - (void)addAttribute:(GDataXMLNode *)attribute

The local variable xmlChar *value is never freed.

2) + (void)fixQualifiedNamesForNode:(xmlNodePtr)nodeToFix graftingToTreeNode:(xmlNodePtr)graftPointNode

The local variable xmlChar* localName is never freed.

How do you free this variable? Calling xmlFree() on a constant gives a compiler warning.