summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-12-01 12:26:42 +0000
committerFelipe Pena <felipe@php.net>2008-12-01 12:26:42 +0000
commit64d29c20d8f414e8aeb9931f472a3de013cce073 (patch)
tree80bf86745d86674413c4e91c50c2187096cd334c
parent4248c38558b84bc9d8ba73693e37dbb6492f6ec8 (diff)
downloadphp-git-64d29c20d8f414e8aeb9931f472a3de013cce073.tar.gz
- Fixed memory leak
-rw-r--r--ext/sqlite/sqlite.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c
index 6316c5f54c..4c3a227bb4 100644
--- a/ext/sqlite/sqlite.c
+++ b/ext/sqlite/sqlite.c
@@ -3457,11 +3457,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;
}