summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_debug.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2010-04-01 11:50:24 +0000
committerAndrey Hristov <andrey@php.net>2010-04-01 11:50:24 +0000
commit311ab2c822e0a14a8785d8889953d7f8a744d4f6 (patch)
treede9fb9426336d465f87e5a1faf062f95e6e09afd /ext/mysqlnd/mysqlnd_debug.c
parent60176163f13dae8fe1902b3f1c4cc9e5970d8ba7 (diff)
downloadphp-git-311ab2c822e0a14a8785d8889953d7f8a744d4f6.tar.gz
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().
Diffstat (limited to 'ext/mysqlnd/mysqlnd_debug.c')
0 files changed, 0 insertions, 0 deletions