[Lldb-commits] [lldb] r185996 - Call xmlFree on the node contents returned by xmlNodeGetContent, as the docs say to do.
Jim Ingham
jingham at apple.com
Tue Jul 9 19:21:57 PDT 2013
Author: jingham
Date: Tue Jul 9 21:21:57 2013
New Revision: 185996
URL: http://llvm.org/viewvc/llvm-project?rev=185996&view=rev
Log:
Call xmlFree on the node contents returned by xmlNodeGetContent, as the docs say to do.
<rdar://problem/14391836>
Modified:
lldb/trunk/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp
Modified: lldb/trunk/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp?rev=185996&r1=185995&r2=185996&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp Tue Jul 9 21:21:57 2013
@@ -232,6 +232,7 @@ SymbolVendorMacOSX::CreateInstance (cons
if (node_content)
{
strncpy(DBGBuildSourcePath, node_content, sizeof(DBGBuildSourcePath));
+ xmlFree((void *) node_content);
}
}
key_node = value_node;
@@ -251,11 +252,14 @@ SymbolVendorMacOSX::CreateInstance (cons
{
FileSpec resolved_source_path(node_content, true);
resolved_source_path.GetPath(DBGSourcePath, sizeof(DBGSourcePath));
+ xmlFree ((void *) node_content);
}
}
key_node = value_node;
}
}
+ if (key_name != NULL)
+ xmlFree((void *) key_name);
}
}
}
More information about the lldb-commits
mailing list