diff options
author | Stanley Cheung <stanley.cheung@gmail.com> | 2018-01-24 10:58:05 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-24 10:58:05 -0800 |
commit | 5e7eed29ed747a24a91c3d202066e64d0478d5db (patch) | |
tree | cecc414eefd10b03b7e41950ccc4ce2ae4fa7937 /src/php/ext | |
parent | 95b4c6570d339beb0445d70d4c8abafa3e26f341 (diff) | |
parent | b0821f0c8b2a2ee25e2f84c31c1c344b063b73ad (diff) |
Merge pull request #14159 from ZhouyihaiDing/pr_call_array_leak
php: fix grpc_parse_metadata_array leak
Diffstat (limited to 'src/php/ext')
-rw-r--r-- | src/php/ext/grpc/call.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, |