mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
fixed problems in mysql_stmt_init (missing alloc from stmt)
This commit is contained in:
parent
848f123645
commit
e6ac744282
1 changed files with 3 additions and 0 deletions
|
@ -1675,7 +1675,10 @@ PHP_FUNCTION(mysqli_stmt_init)
|
|||
}
|
||||
MYSQLI_FETCH_RESOURCE(mysql, MYSQL *, &mysql_link, "mysqli_link");
|
||||
|
||||
stmt = (STMT *)ecalloc(1,sizeof(STMT));
|
||||
|
||||
if (!(stmt->stmt = mysql_stmt_init(mysql))) {
|
||||
efree(stmt);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue