You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2008/09/08 23:36:06 UTC
svn commit: r693290 - /xalan/c/trunk/src/xalanc/XPath/XPathFunctionTable.cpp
Author: dbertoni
Date: Mon Sep 8 14:36:05 2008
New Revision: 693290
URL: http://svn.apache.org/viewvc?rev=693290&view=rev
Log:
Fix potential dereference of null pointer.
Modified:
xalan/c/trunk/src/xalanc/XPath/XPathFunctionTable.cpp
Modified: xalan/c/trunk/src/xalanc/XPath/XPathFunctionTable.cpp
URL: http://svn.apache.org/viewvc/xalan/c/trunk/src/xalanc/XPath/XPathFunctionTable.cpp?rev=693290&r1=693289&r2=693290&view=diff
==============================================================================
--- xalan/c/trunk/src/xalanc/XPath/XPathFunctionTable.cpp (original)
+++ xalan/c/trunk/src/xalanc/XPath/XPathFunctionTable.cpp Mon Sep 8 14:36:05 2008
@@ -193,11 +193,14 @@
Function* const theFunction =
const_cast<Function*>(m_functionTable[theFunctionID]);
- m_functionTable[theFunctionID] = 0;
-
- XalanDestroy(
- *m_memoryManager,
- *theFunction);
+ if (theFunction != 0)
+ {
+ m_functionTable[theFunctionID] = 0;
+
+ XalanDestroy(
+ *m_memoryManager,
+ *theFunction);
+ }
return true;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org