]> granicus.if.org Git - php/commitdiff
plug memory leak
authorAntony Dovgal <tony2001@php.net>
Sun, 27 Nov 2005 18:34:16 +0000 (18:34 +0000)
committerAntony Dovgal <tony2001@php.net>
Sun, 27 Nov 2005 18:34:16 +0000 (18:34 +0000)
ext/pdo_oci/oci_driver.c

index 706faebf38510a99ae6c64089eb9b9ed47b23bdb..3d1944013ec18c3e6a52cfb87e39b43b760d24aa 100755 (executable)
@@ -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);
        }