Fix 'property_p != NULL' assertion fail in RegExp

Related issue: #312

JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
László Langó
2015-08-06 09:50:44 +02:00
parent 2d80456eb7
commit a19dd0523e
6 changed files with 92 additions and 15 deletions
+6 -2
View File
@@ -829,8 +829,12 @@ ecma_free_internal_property (ecma_property_t *property_p) /**< the property */
}
case ECMA_INTERNAL_PROPERTY_REGEXP_BYTECODE:
{
void *bytecode_p = ECMA_GET_NON_NULL_POINTER (void, property_value);
mem_heap_free_block (bytecode_p);
void *bytecode_p = ECMA_GET_POINTER (void, property_value);
if (bytecode_p)
{
mem_heap_free_block (bytecode_p);
}
}
}