Skip to content

Instantly share code, notes, and snippets.

@FROGGS
Created November 25, 2013 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FROGGS/32d36a468e592eb0885e to your computer and use it in GitHub Desktop.
Save FROGGS/32d36a468e592eb0885e to your computer and use it in GitHub Desktop.
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