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:
Nikita Popov 2021-04-15 10:14:19 +02:00
parent 14fd14d780
commit cf7f5cbfac

View file

@ -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);