mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
MFH: allocate_new_resource() handles the malloc() for us. Don't leak by mallocing twice.
This commit is contained in:
parent
805ca9c51f
commit
5fc9d15692
1 changed files with 0 additions and 1 deletions
|
@ -430,7 +430,6 @@ void *tsrm_new_interpreter_context(void)
|
||||||
|
|
||||||
current = tsrm_tls_get();
|
current = tsrm_tls_get();
|
||||||
|
|
||||||
new_ctx = malloc(sizeof(*new_ctx));
|
|
||||||
allocate_new_resource(&new_ctx, thread_id);
|
allocate_new_resource(&new_ctx, thread_id);
|
||||||
|
|
||||||
/* switch back to the context that was in use prior to our creation
|
/* switch back to the context that was in use prior to our creation
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue