summaryrefslogtreecommitdiff
path: root/ext/pdo_oci
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2005-11-27 18:34:16 +0000
committerAntony Dovgal <tony2001@php.net>2005-11-27 18:34:16 +0000
commited978d2f1acecff7476e5c3ca4133f98da450c1a (patch)
tree7ffb050b9691e9042da4a0bb6e3a0fe4ae7c0eb6 /ext/pdo_oci
parentdf710be5c765226fcdcb62ed066dd4484da257eb (diff)
downloadphp-git-ed978d2f1acecff7476e5c3ca4133f98da450c1a.tar.gz
plug memory leak
Diffstat (limited to 'ext/pdo_oci')
-rwxr-xr-xext/pdo_oci/oci_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo_oci/oci_driver.c b/ext/pdo_oci/oci_driver.c
index 706faebf38..3d1944013e 100755
--- a/ext/pdo_oci/oci_driver.c
+++ b/ext/pdo_oci/oci_driver.c
@@ -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);
}