summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_auth.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-03-02 10:45:37 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2020-03-02 10:45:37 +0100
commit2adf1c4d23467424012db1971d0a0a678d10d782 (patch)
treea222bfb3f5bc98f959dadaf6ac0acf3c09d95bea /ext/mysqlnd/mysqlnd_auth.c
parent6c48da9a50a68cbb27873ead6bf936494c006236 (diff)
downloadphp-git-2adf1c4d23467424012db1971d0a0a678d10d782.tar.gz
Fix #79332: php_istreams are never freed
Releasing the `com_dotnet_istream_wrapper` in `istream_destructor()` is pointless, since `istream_destructor()` is only called when the resource is going to be released. This recursion is not a real issue, though, since the resource is never exposed to userland, and has at most refcount 1, so due to well defined unsigned integer underflow, it never is released twice. However, returning early in this case causes a memory leak which needs to be fixed.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_auth.c')
0 files changed, 0 insertions, 0 deletions