cvs: php-src /ext/pdo_mysql mysql_statement.c
| From: | Antony Dovgal | Date: | Wed, 30 Nov 2005 11:32:36 +0000 |
| Subject: | cvs: php-src /ext/pdo_mysql mysql_statement.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-35512@lists.php.net to get a copy of this message | ||
tony2001 Wed Nov 30 06:32:36 2005 EDT
Modified files:
/php-src/ext/pdo_mysql mysql_statement.c
Log:
fix possible crash in pdo_mysql_stmt_dtor()
http://cvs.php.net/diff.php/php-src/ext/pdo_mysql/mysql_statement.c?r1=1.52&r2=1.53&ty=u
Index: php-src/ext/pdo_mysql/mysql_statement.c
diff -u php-src/ext/pdo_mysql/mysql_statement.c:1.52 php-src/ext/pdo_mysql/mysql_statement.c:1.53
--- php-src/ext/pdo_mysql/mysql_statement.c:1.52 Thu Oct 27 13:25:31 2005
+++ php-src/ext/pdo_mysql/mysql_statement.c Wed Nov 30 06:32:33 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mysql_statement.c,v 1.52 2005/10/27 17:25:31 tony2001 Exp $ */
+/* $Id: mysql_statement.c,v 1.53 2005/11/30 11:32:33 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -42,7 +42,7 @@
S->result = NULL;
}
if (S->einfo.errmsg) {
- efree(S->einfo.errmsg);
+ pefree(S->einfo.errmsg, stmt->dbh->is_persistent);
S->einfo.errmsg = NULL;
}
#if HAVE_MYSQL_STMT_PREPARE