From b06262bf40b2e097a293bbd0371dd3cec1488f48 Mon Sep 17 00:00:00 2001 From: linty Date: Fri, 23 Dec 2016 15:50:39 +0800 Subject: [PATCH] MOD: memory leak in getchildren --- php_zookeeper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/php_zookeeper.c b/php_zookeeper.c index bf019da..f7a5e9f 100644 --- a/php_zookeeper.c +++ b/php_zookeeper.c @@ -292,6 +292,7 @@ static PHP_METHOD(Zookeeper, getChildren) for (i = 0; i < strings.count; i++) { add_next_index_string(return_value, strings.data[i], 1); } + deallocate_String_vector(&strings); } /* }}} */