From: Sara Golemon Date: Mon, 29 Aug 2005 21:53:34 +0000 (+0000) Subject: allocate_new_resource() handles the malloc() for us. Don't leak by mallocing twice. X-Git-Tag: PRE_NEW_OCI8_EXTENSION~71 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3b177eb30d79a640a303e881e2d9e8082feb45c;p=php 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