mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
mysqlnd: Free empty param bind
Even if the param bind is empty, there might still be an allocation for it that we need to free.
This commit is contained in:
parent
14fd14d780
commit
cf7f5cbfac
1 changed files with 2 additions and 0 deletions
|
@ -1173,6 +1173,8 @@ MYSQLND_METHOD(mysqlnd_stmt, bind_parameters)(MYSQLND_STMT * const s, MYSQLND_PA
|
|||
}
|
||||
}
|
||||
stmt->send_types_to_server = 1;
|
||||
} else if (param_bind && param_bind != stmt->param_bind) {
|
||||
s->m->free_parameter_bind(s, param_bind);
|
||||
}
|
||||
DBG_INF("PASS");
|
||||
DBG_RETURN(PASS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue