From b0821f0c8b2a2ee25e2f84c31c1c344b063b73ad Mon Sep 17 00:00:00 2001 From: Zhouyihai Ding Date: Tue, 23 Jan 2018 20:38:02 -0800 Subject: php: fix grpc_parse_metadata_array leak --- src/php/ext/grpc/call.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/php/ext') diff --git a/src/php/ext/grpc/call.c b/src/php/ext/grpc/call.c index 9c0f3f8a91..e883537c64 100644 --- a/src/php/ext/grpc/call.c +++ b/src/php/ext/grpc/call.c @@ -99,6 +99,7 @@ zval *grpc_parse_metadata_array(grpc_metadata_array 1 TSRMLS_CC); efree(str_key); efree(str_val); + PHP_GRPC_FREE_STD_ZVAL(array); return NULL; } php_grpc_add_next_index_stringl(data, str_val, -- cgit v1.2.3