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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user