]> granicus.if.org Git - php/commit
Fixed bug #51347 mysqli_close / connection memory leak
authorAndrey Hristov <andrey@php.net>
Thu, 1 Apr 2010 11:50:24 +0000 (11:50 +0000)
committerAndrey Hristov <andrey@php.net>
Thu, 1 Apr 2010 11:50:24 +0000 (11:50 +0000)
commit311ab2c822e0a14a8785d8889953d7f8a744d4f6
treede9fb9426336d465f87e5a1faf062f95e6e09afd
parent60176163f13dae8fe1902b3f1c4cc9e5970d8ba7
Fixed bug #51347 mysqli_close / connection memory leak
Streams API registers every stream as resource, which lands then
in EG(regular_list), however doesn't clean that when the stream is
closed. At the end this is a para-leak. At the end of the script
all memory is cleaned, however this is a problem for long runnig
scripts that open connections. For every opened and closed connection
about 150 Bytes on 32bit and 250 Bytes on 64bit will be "lost",
according to memory_get_usage().
NEWS
ext/mysqlnd/mysqlnd_net.c