cvs: pecl(PECL_4_3) /sqlite sqlite.c

From: Date: Thu, 26 Jun 2003 21:03:12 +0000
Subject: cvs: pecl(PECL_4_3) /sqlite sqlite.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-326@lists.php.net to get a copy of this message
helly Thu Jun 26 17:03:12 2003 EDT Modified files: (Branch: PECL_4_3) /pecl/sqlite sqlite.c Log: MFH: fix memleak Index: pecl/sqlite/sqlite.c diff -u pecl/sqlite/sqlite.c:1.62.2.2 pecl/sqlite/sqlite.c:1.62.2.3 --- pecl/sqlite/sqlite.c:1.62.2.2 Thu Jun 26 09:40:25 2003 +++ pecl/sqlite/sqlite.c Thu Jun 26 17:03:12 2003 @@ -17,7 +17,7 @@ | Marcus Boerger <helly@php.net> | +----------------------------------------------------------------------+ - $Id: sqlite.c,v 1.62.2.2 2003/06/26 13:40:25 iliaa Exp $ + $Id: sqlite.c,v 1.62.2.3 2003/06/26 21:03:12 helly Exp $ */ #ifdef HAVE_CONFIG_H @@ -667,7 +667,7 @@ { php_info_print_table_start(); php_info_print_table_header(2, "SQLite support", "enabled"); - php_info_print_table_row(2, "PECL Module version", PHP_SQLITE_MODULE_VERSION " $Id: sqlite.c,v 1.62.2.2 2003/06/26 13:40:25 iliaa Exp $"); + php_info_print_table_row(2, "PECL Module version", PHP_SQLITE_MODULE_VERSION " $Id: sqlite.c,v 1.62.2.3 2003/06/26 21:03:12 helly Exp $"); php_info_print_table_row(2, "SQLite Library", sqlite_libversion()); php_info_print_table_row(2, "SQLite Encoding", sqlite_libencoding()); php_info_print_table_end(); @@ -749,6 +749,9 @@ &filename, &filename_len, &mode, &errmsg)) { return; } + if (errmsg) { + zval_dtor(errmsg); + } if (strncmp(filename, ":memory:", sizeof(":memory:") - 1)) { /* resolve the fully-qualified path name to use as the hash key */ @@ -810,6 +813,9 @@ if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lz/", &filename, &filename_len, &mode, &errmsg)) { return; + } + if (errmsg) { + zval_dtor(errmsg); } if (strncmp(filename, ":memory:", sizeof(":memory:") - 1)) {

« previous php.pecl.cvs (#326) next »