summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c
index dd992ac..834976d 100644
--- a/main.c
+++ b/main.c
@@ -331,11 +331,14 @@ main(int argc, char **argv)
break;
case 'm':
- o = uc_vm_invoke(&vm, "require", 1, ucv_string_new(optarg));
+ p = ucv_string_new(optarg);
+ o = uc_vm_invoke(&vm, "require", 1, p);
if (o)
register_variable(uc_vm_scope_get(&vm), optarg, o);
+ ucv_put(p);
+
break;
case 't':