Bug #70571 [Asn->Csd]: Memory leak in sqlite3_do_callback

From: Date: Thu, 24 Sep 2015 12:24:21 +0000
Subject: Bug #70571 [Asn->Csd]: Memory leak in sqlite3_do_callback
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196208@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70571&edit=1 ID: 70571 Updated by: aharvey@php.net Reported by: aharvey@php.net Summary: Memory leak in sqlite3_do_callback -Status: Assigned +Status: Closed Type: Bug Package: SQLite related Operating System: Irrelevant PHP Version: 7.0Git-2015-09-24 (Git) Assigned To: aharvey Block user comment: N Private report: N New Comment: The fix for this bug has been committed. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2015-09-24 10:38:05] aharvey@php.net Description: ------------ sqlite3_do_callback() leaks the zval context when used with a custom aggregate function in PHP 7.0 due to the use of ZVAL_COPY_VALUE(). Replacing it with ZVAL_DUP() and a paired zval_ptr_dtor() removes the leak. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70571&edit=1

« previous php.bugs (#196208) next »