Merge pull request #14125 from ZhouyihaiDing/persistent_channel_leak

php: fix channel persistence list leak
pull/14129/head
Stanley Cheung 7 years ago committed by GitHub
commit 99bb1703bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/php/ext/grpc/channel.c

@ -437,6 +437,7 @@ void php_grpc_delete_persistent_list_entry(char *key, php_grpc_int key_len
le = (channel_persistent_le_t *)rsrc->ptr;
le->channel = NULL;
php_grpc_zend_hash_del(&EG(persistent_list), key, key_len+1);
free(le);
}
gpr_mu_unlock(&global_persistent_list_mu);
}

Loading…
Cancel
Save