diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-28 08:20:01 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-28 10:53:13 +0100 |
commit | 821ef2bb05cb6bddda65d2214ff4d80e7d872664 (patch) | |
tree | d002d63db26c3000f8b4f6f066a9935ac75146eb /forms | |
parent | coverity#705637: fix memory leak and add documentation (diff) | |
download | core-821ef2bb05cb6bddda65d2214ff4d80e7d872664.tar.gz core-821ef2bb05cb6bddda65d2214ff4d80e7d872664.zip |
coverity#705651: fix memory leak
Change-Id: I1f0c8ac963f16fb4bd0d101c6a62996d9aebab78
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/xforms/xpathlib/xpathlib.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/forms/source/xforms/xpathlib/xpathlib.cxx b/forms/source/xforms/xpathlib/xpathlib.cxx index 7ba0dcbfa00f..8a915c45aa0b 100644 --- a/forms/source/xforms/xpathlib/xpathlib.cxx +++ b/forms/source/xforms/xpathlib/xpathlib.cxx @@ -392,7 +392,11 @@ static sal_Bool parseDuration(const xmlChar* aString, sal_Bool& bNegative, sal_I } if (pString[0] != 'P') + { + rtl_freeMemory(pString0); return sal_False; + } + pString++; char* pToken = pString; while(pToken[0] != 0) |