Skip to content

Commit

Permalink
- MFH: Fixed memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Dec 1, 2008
1 parent ee934d3 commit 8d161f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/sqlite/sqlite.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8d161f9

Please sign in to comment.