mirror of
https://github.com/php/php-src.git
synced 2025-01-15 00:05:02 +08:00
plug memory leak
This commit is contained in:
parent
df710be5c7
commit
ed978d2f1a
@ -149,10 +149,10 @@ ub4 _oci_error(OCIError *err, pdo_dbh_t *dbh, pdo_stmt_t *stmt, char *what, swor
|
||||
* so that we can catch the error information when execute
|
||||
* is called via query. See Bug #33707 */
|
||||
if (H->einfo.errmsg) {
|
||||
efree(H->einfo.errmsg);
|
||||
pefree(H->einfo.errmsg, dbh->is_persistent);
|
||||
}
|
||||
H->einfo = *einfo;
|
||||
H->einfo.errmsg = einfo->errmsg ? estrdup(einfo->errmsg) : NULL;
|
||||
H->einfo.errmsg = einfo->errmsg ? pestrdup(einfo->errmsg, dbh->is_persistent) : NULL;
|
||||
strcpy(dbh->error_code, stmt->error_code);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user