summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/SymbolVendor
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2013-07-10 02:21:57 +0000
committerJim Ingham <jingham@apple.com>2013-07-10 02:21:57 +0000
commit33baa93e0f1e71d59941d3d5a78754f42ebeff34 (patch)
treeff104dccce44307ddef401fa795b7eb1f101150c /lldb/source/Plugins/SymbolVendor
parentb73d4200f8d6d7ac138ddf19ae57d0671d860e82 (diff)
Call xmlFree on the node contents returned by xmlNodeGetContent, as the docs say to do.
<rdar://problem/14391836>
Diffstat (limited to 'lldb/source/Plugins/SymbolVendor')
-rw-r--r--lldb/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp b/lldb/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp
index 166c4c80ba7..a70c5d57114 100644
--- a/lldb/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp
+++ b/lldb/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp
@@ -232,6 +232,7 @@ SymbolVendorMacOSX::CreateInstance (const lldb::ModuleSP &module_sp, lldb_privat
if (node_content)
{
strncpy(DBGBuildSourcePath, node_content, sizeof(DBGBuildSourcePath));
+ xmlFree((void *) node_content);
}
}
key_node = value_node;
@@ -251,11 +252,14 @@ SymbolVendorMacOSX::CreateInstance (const lldb::ModuleSP &module_sp, lldb_privat
{
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);
}
}
}