Skip to content

Commit 87dc49c

Browse files
committed
Fix error message allocation of PDO PgSQL.
1 parent 1f38c00 commit 87dc49c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pdo_pgsql/pgsql_driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ int _pdo_pgsql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char *
8787
}
8888

8989
if (msg) {
90-
einfo->errmsg = estrdup(msg);
90+
einfo->errmsg = pestrdup(msg, dbh->is_persistent);
9191
}
9292
else if (errmsg) {
9393
einfo->errmsg = _pdo_pgsql_trim_message(errmsg, dbh->is_persistent);

0 commit comments

Comments
 (0)