From: Sara Golemon Date: Mon, 29 Aug 2005 22:05:25 +0000 (+0000) Subject: MFH: allocate_new_resource() handles the malloc() for us. Don't leak by mallocing... X-Git-Tag: php-5.1.0RC2_PRE~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5fc9d15692acf99c032297f862a0ea89f91a034b;p=php MFH: allocate_new_resource() handles the malloc() for us. Don't leak by mallocing twice. --- 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