mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Fix memory leak in mysqlnd_vio::open_pipe
This fixes the memory leak part of GH-10599.
This commit is contained in:
parent
06b87f912b
commit
319fb50eca
1 changed files with 1 additions and 0 deletions
|
@ -141,6 +141,7 @@ MYSQLND_METHOD(mysqlnd_vio, open_pipe)(MYSQLND_VIO * const vio, const MYSQLND_CS
|
|||
EG(regular_list).pDestructor = NULL;
|
||||
zend_hash_index_del(&EG(regular_list), net_stream->res->handle); /* ToDO: should it be res->handle, do streams register with addref ?*/
|
||||
EG(regular_list).pDestructor = origin_dtor;
|
||||
efree(net_stream->res);
|
||||
net_stream->res = NULL;
|
||||
|
||||
DBG_RETURN(net_stream);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue