summaryrefslogtreecommitdiffhomepage
path: root/examples/execute-string.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-02-02 23:34:29 +0100
committerJo-Philipp Wich <jo@mein.io>2022-02-03 16:26:44 +0100
commit3600ded530cf099a922cbff73df37d7bcf3c3008 (patch)
tree3f8766c97fba02b451fc51675df19d4161170fa3 /examples/execute-string.c
parent30592950f08c6ee521a939c9ea90fcf9b65b88b0 (diff)
vm: fix leaking function value on call exception
The internal uc_vm_call_function() helper may fail in different ways before the stack frame has been set up, e.g. if the provided function value was not actually a callable function. In such cases an exception is raised but the actual function value is leaked since there's not yet a stackframe referring to it. Solve the issue by freeing the function value explicitly in these exit cases. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'examples/execute-string.c')
0 files changed, 0 insertions, 0 deletions