summaryrefslogtreecommitdiff
path: root/src/pugixml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pugixml.cpp')
-rw-r--r--src/pugixml.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index f24653f..1bd6c68 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -3063,8 +3063,7 @@ namespace pugi
{
xml_parse_result res = parse(xmlstr, options);
- if (res) _buffer = xmlstr;
- else global_deallocate(xmlstr);
+ _buffer = xmlstr;
return res;
}