From f3b177eb30d79a640a303e881e2d9e8082feb45c Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Mon, 29 Aug 2005 21:53:34 +0000 Subject: [PATCH] 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