From 6be41055b4fe291f6c833675fd06e4340d864280 Mon Sep 17 00:00:00 2001 From: Hannah Shi Date: Fri, 17 Apr 2020 18:50:39 +0000 Subject: [PATCH] fix of a bit of memory leak --- src/php/ext/grpc/channel.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/php/ext/grpc/channel.c b/src/php/ext/grpc/channel.c index c8060a976c3..059e8333db1 100644 --- a/src/php/ext/grpc/channel.c +++ b/src/php/ext/grpc/channel.c @@ -350,7 +350,6 @@ PHP_METHOD(Channel, __construct) { 1 TSRMLS_CC); return; } else { - Z_ADDREF(*creds_obj); creds = PHP_GRPC_GET_WRAPPED_OBJECT(wrapped_grpc_channel_credentials, creds_obj); }