From 5fc9d15692acf99c032297f862a0ea89f91a034b Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Mon, 29 Aug 2005 22:05:25 +0000 Subject: [PATCH] MFH: allocate_new_resource() handles the malloc() for us. Don't leak by mallocing twice. --- TSRM/TSRM.c | 1 - 1 file changed, 1 deletion(-) diff --git a/TSRM/TSRM.c b/TSRM/TSRM.c index 5eb8f3a06d..208d5e95d3 100644 --- a/TSRM/TSRM.c +++ b/TSRM/TSRM.c @@ -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 -- 2.50.1