Skip to content

Commit 4621423

Browse files
committed
Fix uouv in pg_put_copy_end()
Closes GH-18383.
1 parent 29a5adc commit 4621423

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ PHP NEWS
5656
- PDO Sqlite:
5757
. Fix memory leak on error return of collation callback. (nielsdos)
5858

59+
- PgSql:
60+
. Fix uouv in pg_put_copy_end(). (nielsdos)
61+
5962
- SPL:
6063
. Fixed bug GH-18322 (SplObjectStorage debug handler mismanages memory).
6164
(nielsdos)

ext/pgsql/pgsql.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -6215,7 +6215,7 @@ PHP_FUNCTION(pg_put_copy_end)
62156215
{
62166216
zval *pgsql_link;
62176217
pgsql_link_handle *link;
6218-
zend_string *error;
6218+
zend_string *error = NULL;
62196219
char *err = NULL;
62206220

62216221
ZEND_PARSE_PARAMETERS_START(1, 2)

0 commit comments

Comments
 (0)