cvs: php-src /ext/pdo_oci oci_driver.c

From: Date: Sun, 27 Nov 2005 18:34:16 +0000
Subject: cvs: php-src /ext/pdo_oci oci_driver.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-35427@lists.php.net to get a copy of this message
tony2001 Sun Nov 27 13:34:16 2005 EDT Modified files: /php-src/ext/pdo_oci oci_driver.c Log: plug memory leak http://cvs.php.net/diff.php/php-src/ext/pdo_oci/oci_driver.c?r1=1.27&r2=1.28&ty=u Index: php-src/ext/pdo_oci/oci_driver.c diff -u php-src/ext/pdo_oci/oci_driver.c:1.27 php-src/ext/pdo_oci/oci_driver.c:1.28 --- php-src/ext/pdo_oci/oci_driver.c:1.27 Sun Sep 11 01:08:49 2005 +++ php-src/ext/pdo_oci/oci_driver.c Sun Nov 27 13:34:16 2005 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: oci_driver.c,v 1.27 2005/09/11 05:08:49 wez Exp $ */ +/* $Id: oci_driver.c,v 1.28 2005/11/27 18:34:16 tony2001 Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -149,10 +149,10 @@ * 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); }

« previous php.cvs (#35427) next »