cvs: php-src(PHP_4_3) /ext/interbase interbase.c
| From: | Ard Biesheuvel | Date: | Sun, 17 Aug 2003 16:43:50 +0000 |
| Subject: | cvs: php-src(PHP_4_3) /ext/interbase interbase.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-23263@lists.php.net to get a copy of this message | ||
abies Sun Aug 17 12:43:50 2003 EDT
Modified files: (Branch: PHP_4_3)
/php-src/ext/interbase interbase.c
Log:
MFH Fixed leak in _php_ibase_bind()
Index: php-src/ext/interbase/interbase.c
diff -u php-src/ext/interbase/interbase.c:1.91.2.18 php-src/ext/interbase/interbase.c:1.91.2.19
--- php-src/ext/interbase/interbase.c:1.91.2.18 Sun Aug 17 09:26:13 2003
+++ php-src/ext/interbase/interbase.c Sun Aug 17 12:43:49 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: interbase.c,v 1.91.2.18 2003/08/17 13:26:13 abies Exp $ */
+/* $Id: interbase.c,v 1.91.2.19 2003/08/17 16:43:49 abies Exp $ */
/* TODO: Arrays, roles?
@@ -624,7 +624,7 @@
php_info_print_table_start();
php_info_print_table_row(2, "Interbase Support", "enabled");
- php_info_print_table_row(2, "Revision", "$Revision: 1.91.2.18 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.91.2.19 $");
#ifdef COMPILE_DL_INTERBASE
php_info_print_table_row(2, "Dynamic Module", "yes");
#endif
@@ -1361,8 +1361,9 @@
efree(ib_blob);
return FAILURE;
}
- ib_blob_id = ib_blob;
- var->sqldata = (void ISC_FAR *) &ib_blob_id->bl_qd;
+ buf[i].val.qval = ib_blob->bl_qd;
+ var->sqldata = (void ISC_FAR *) &buf[i].val.qval;
+ efree(ib_blob);
/*
_php_ibase_module_error("Invalid blob id string");
return FAILURE;
@@ -2698,6 +2699,7 @@
RETURN_LONG(zend_list_insert(ib_blob, le_blob));
}
+/* }}} */
/* {{{ proto bool ibase_blob_add(int blob_id, string data)
Add data into created blob */