Add missing ecma_free_value to opfunc_init_class (#3626)
This patch fixes #3625. JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
@@ -976,6 +976,7 @@ opfunc_init_class (vm_frame_ctx_t *frame_ctx_p, /**< frame context */
|
||||
}
|
||||
else
|
||||
{
|
||||
ecma_free_value (proto_parent);
|
||||
return ecma_raise_type_error ("Property 'prototype' is not an object or null");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user