Instantly share code, notes, and snippets.

@FROGGS /missing.diff Secret
Created Nov 25, 2013

Embed
What would you like to do?
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