[php-src] PR #21165: Fix GH-21162: pg_connect() on error memory leak.
| From: | devnexen | Date: | Sun, 08 Feb 2026 15:07:22 +0000 |
| Subject: | [php-src] PR #21165: Fix GH-21162: pg_connect() on error memory leak. | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-34850@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21165
Author: devnexen
The PHP_PQ_ERROR macro calls php_error_docref() which triggers user error handlers thus libpq does
not have the chance to clean the resources (and empty connections string are allowed) on failure
thus we avoid this macro and delay the error handling after.