Browse files

fix leak in XmlNamespace::New

  • Loading branch information...
1 parent de3c328 commit 7fdf7fc909c5a644726466ea43b37e7530de33ea @triccardi-systran triccardi-systran committed Jul 18, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/xml_namespace.cc
View
3 src/xml_namespace.cc
@@ -41,6 +41,9 @@ XmlNamespace::New(const v8::Arguments& args) {
(const xmlChar*)(href->operator*()),
prefix ? (const xmlChar*)(prefix->operator*()) : NULL);
+ delete prefix;
+ delete href;
+
XmlNamespace* namesp = new XmlNamespace(ns);
namesp->Wrap(args.Holder());

0 comments on commit 7fdf7fc

Please sign in to comment.