aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/ext
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanley.cheung@gmail.com>2018-01-24 10:58:05 -0800
committerGravatar GitHub <noreply@github.com>2018-01-24 10:58:05 -0800
commit5e7eed29ed747a24a91c3d202066e64d0478d5db (patch)
treececc414eefd10b03b7e41950ccc4ce2ae4fa7937 /src/php/ext
parent95b4c6570d339beb0445d70d4c8abafa3e26f341 (diff)
parentb0821f0c8b2a2ee25e2f84c31c1c344b063b73ad (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.c1
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,