mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Fix for Bug #51870
PDO::fetchAll after a PDO::execute with bindings lead to a segv. It is only in unreleased code and thus doesn't deserve a NEWS entry
This commit is contained in:
parent
ea3a6539dc
commit
9c90bf42c1
@ -111,7 +111,7 @@ static int pdo_mysql_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */
|
||||
#endif /* HAVE_MYSQL_NEXT_RESULT || PDO_USE_MYSQLND */
|
||||
#if PDO_USE_MYSQLND
|
||||
if (!S->stmt && S->current_data) {
|
||||
free(S->current_data);
|
||||
mnd_free(S->current_data);
|
||||
}
|
||||
#endif /* PDO_USE_MYSQLND */
|
||||
|
||||
@ -652,7 +652,7 @@ static int pdo_mysql_stmt_fetch(pdo_stmt_t *stmt,
|
||||
}
|
||||
#if PDO_USE_MYSQLND
|
||||
if (!S->stmt && S->current_data) {
|
||||
free(S->current_data);
|
||||
mnd_free(S->current_data);
|
||||
}
|
||||
#endif /* PDO_USE_MYSQLND */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user