MFH: allocate_new_resource() handles the malloc() for us. Don't leak by mallocing twice.

This commit is contained in:
Sara Golemon 2005-08-29 22:05:25 +00:00
parent 805ca9c51f
commit 5fc9d15692

View file

@ -430,7 +430,6 @@ void *tsrm_new_interpreter_context(void)
current = tsrm_tls_get();
new_ctx = malloc(sizeof(*new_ctx));
allocate_new_resource(&new_ctx, thread_id);
/* switch back to the context that was in use prior to our creation