diff --git a/doc/xml/release.xml b/doc/xml/release.xml index 254772c8e..73808c2ff 100644 --- a/doc/xml/release.xml +++ b/doc/xml/release.xml @@ -18,7 +18,10 @@ - + + + + diff --git a/src/common/regExp.c b/src/common/regExp.c index a9ac02cdd..d06549e48 100644 --- a/src/common/regExp.c +++ b/src/common/regExp.c @@ -179,18 +179,13 @@ regExpMatchOne(const String *expression, const String *string) ASSERT(expression != NULL); ASSERT(string != NULL); - bool result = false; - RegExp *regExp = regExpNew(expression); + bool result; - TRY_BEGIN() + MEM_CONTEXT_TEMP_BEGIN() { - result = regExpMatch(regExp, string); + result = regExpMatch(regExpNew(expression), string); } - FINALLY() - { - regExpFree(regExp); - } - TRY_END(); + MEM_CONTEXT_TEMP_END(); FUNCTION_TEST_RETURN(BOOL, result); }