mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +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;
|
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_INF("PASS");
|
||||||
DBG_RETURN(PASS);
|
DBG_RETURN(PASS);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue