diff options
| author | Sara Golemon <pollita@php.net> | 2005-08-29 22:05:25 +0000 |
|---|---|---|
| committer | Sara Golemon <pollita@php.net> | 2005-08-29 22:05:25 +0000 |
| commit | 5fc9d15692acf99c032297f862a0ea89f91a034b (patch) | |
| tree | ed980df24d0f1d56404b900816d64d20c2865416 /TSRM | |
| parent | 805ca9c51f8b9f59d9450cf720dff68ac80855c3 (diff) | |
| download | php-git-5fc9d15692acf99c032297f862a0ea89f91a034b.tar.gz | |
MFH: allocate_new_resource() handles the malloc() for us. Don't leak by mallocing twice.
Diffstat (limited to 'TSRM')
| -rw-r--r-- | TSRM/TSRM.c | 1 |
1 files changed, 0 insertions, 1 deletions
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 |
