mirror of
https://github.com/php/php-src.git
synced 2024-12-14 04:16:30 +08:00
- MFH: Fix mem. leak
This commit is contained in:
parent
fcfcacefc9
commit
efdaaa3f59
@ -470,6 +470,9 @@ static int firebird_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_dat
|
||||
case PDO_PARAM_EVT_ALLOC:
|
||||
if (param->is_param) {
|
||||
/* allocate the parameter */
|
||||
if (var->sqlind) {
|
||||
efree(var->sqlind);
|
||||
}
|
||||
var->sqlind = (void*)emalloc(var->sqllen + 2*sizeof(short));
|
||||
var->sqldata = &((char*)var->sqlind)[sizeof(short)];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user