atom feed2 messages in com.googlegroups.gdata-objectivec-clientGDataXMLNode Memory Leaks
FromSent OnAttachments
ctSep 26, 2008 1:32 pm 
Greg RobbinsSep 26, 2008 2:48 pm 
Subject:GDataXMLNode Memory Leaks
From:ct (
Date:Sep 26, 2008 1:32:18 pm

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.