1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 02:33:17 +02:00

- MFH: Fixed memory leak

This commit is contained in:
Felipe Pena
2008-12-01 12:27:35 +00:00
parent ee934d356b
commit 8d161f97cd
+2
View File
@@ -3255,11 +3255,13 @@ static enum callback_prep_t prep_callback_struct(struct php_sqlite_db *db, int i
MAKE_STD_ZVAL(alloc_funcs->step);
*(alloc_funcs->step) = *step;
zval_copy_ctor(alloc_funcs->step);
INIT_PZVAL(alloc_funcs->step);
if (is_agg) {
MAKE_STD_ZVAL(alloc_funcs->fini);
*(alloc_funcs->fini) = *fini;
zval_copy_ctor(alloc_funcs->fini);
INIT_PZVAL(alloc_funcs->fini);
} else {
alloc_funcs->fini = NULL;
}