-
-
Save FROGGS/32d36a468e592eb0885e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/core/args.c b/src/core/args.c | |
index db6e6bb..c4aef6d 100644 | |
--- a/src/core/args.c | |
+++ b/src/core/args.c | |
@@ -491,6 +491,7 @@ MVMObject * MVM_args_slurpy_named(MVMThreadContext *tc, MVMArgProcContext *ctx) | |
MVM_exception_throw_adhoc(tc, "Missing hll slurpy hash type"); | |
} | |
+ MVM_gc_root_temp_push(tc, (MVMCollectable **)&type); | |
result = REPR(type)->allocate(tc, STABLE(type)); | |
MVM_gc_root_temp_push(tc, (MVMCollectable **)&result); | |
if (REPR(result)->initialize) | |
@@ -545,7 +546,7 @@ MVMObject * MVM_args_slurpy_named(MVMThreadContext *tc, MVMArgProcContext *ctx) | |
} | |
} | |
- MVM_gc_root_temp_pop_n(tc, 2); | |
+ MVM_gc_root_temp_pop_n(tc, 3); | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment