diff --git a/doc/program-sax.xml b/doc/program-sax.xml
index 837a510072be0978ed4e3c42b2f626604d5fc089..94c69e3576e405ccd27e95c210cb4b0768d98ba5 100644
--- a/doc/program-sax.xml
+++ b/doc/program-sax.xml
@@ -83,6 +83,7 @@ void MySAXHandler::fatalError(const SAXParseException& exception)
     cout << "Fatal Error: " << message
          << " at line: " << exception.getLineNumber()
          << endl;
+    XMLString::release(&message);
 }</source>
 
       <p>The XMLCh and AttributeList types are supplied by