diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-08-24 15:55:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-24 15:55:35 +0200 |
commit | 66bbda7fdc5dfdc1b0ed587a4f8cfc72b1c34a3b (patch) | |
tree | 0a089858e2f2fbf2c19440be8dda7e945667d83b /types.c | |
parent | 796a9471bfe69007678d83ba279f9b24cfd17ec1 (diff) | |
parent | 131d99c45e586e06d2fa3adba32e92c0370ad022 (diff) |
Merge pull request #101 from jow-/loadfile-support
lib: introduce three new functions call(), loadstring() and loadfile()
Diffstat (limited to 'types.c')
-rw-r--r-- | types.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -266,7 +266,8 @@ ucv_free(uc_value_t *uv, bool retain) ref = &closure->ref; for (i = 0; i < function->nupvals; i++) - ucv_put_value(&closure->upvals[i]->header, retain); + if (closure->upvals[i]) + ucv_put_value(&closure->upvals[i]->header, retain); ucv_put_value(&function->program->header, retain); break; |