/third_party/grpc/test/core/gpr/ |
D | string_test.cc | 42 gpr_free(dst1); in test_strdup() 51 gpr_free(got); in expect_dump() 118 gpr_free(buf); in test_asprintf() 130 gpr_free(buf); in test_asprintf() 143 gpr_free(joined); in test_strjoin() 147 gpr_free(joined); in test_strjoin() 151 gpr_free(joined); in test_strjoin() 163 gpr_free(joined); in test_strjoin_sep() 168 gpr_free(joined); in test_strjoin_sep() 173 gpr_free(joined); in test_strjoin_sep() [all …]
|
/third_party/grpc/src/core/lib/gpr/ |
D | env_windows.cc | 42 gpr_free(tname); in gpr_getenv() 48 gpr_free(tname); in gpr_getenv() 50 gpr_free(tresult); in gpr_getenv() 54 gpr_free(tresult); in gpr_getenv() 62 gpr_free(tname); in gpr_setenv() 63 gpr_free(tvalue); in gpr_setenv() 70 gpr_free(tname); in gpr_unsetenv()
|
/third_party/grpc/test/core/tsi/alts/crypt/ |
D | aes_gcm_test.cc | 146 gpr_free(corrupt_nonce); in gsec_test_random_encrypt_decrypt() 147 gpr_free(error_message); in gsec_test_random_encrypt_decrypt() 166 gpr_free(error_message); in gsec_test_random_encrypt_decrypt() 167 gpr_free(corrupt_ciphertext_and_tag); in gsec_test_random_encrypt_decrypt() 183 gpr_free(error_message); in gsec_test_random_encrypt_decrypt() 184 gpr_free(corrupt_ciphertext_and_tag); in gsec_test_random_encrypt_decrypt() 202 gpr_free(error_message); in gsec_test_random_encrypt_decrypt() 203 gpr_free(corrupt_ciphertext_and_tag); in gsec_test_random_encrypt_decrypt() 206 gpr_free(zero_message); in gsec_test_random_encrypt_decrypt() 207 gpr_free(nonce); in gsec_test_random_encrypt_decrypt() [all …]
|
/third_party/grpc/src/core/ext/filters/client_channel/ |
D | http_proxy.cc | 100 gpr_free(authority_strs[i]); in GetHttpProxyServer() 104 gpr_free(authority_strs); in GetHttpProxyServer() 106 gpr_free(uri_str); in GetHttpProxyServer() 148 gpr_free(no_proxy_str); in MapName() 169 gpr_free(no_proxy_hosts[i]); in MapName() 171 gpr_free(no_proxy_hosts); in MapName() 172 gpr_free(no_proxy_str); in MapName() 186 gpr_free(encoded_user_cred); in MapName() 194 gpr_free(user_cred); in MapName() 197 gpr_free(*name_to_resolve); in MapName() [all …]
|
/third_party/grpc/test/core/tsi/alts/frame_protector/ |
D | alts_crypter_test.cc | 62 gpr_free(data_buffer); in alts_crypter_test_random_seal_unseal() 63 gpr_free(duplicate_buffer); in alts_crypter_test_random_seal_unseal() 125 gpr_free(data_buffer1); in alts_crypter_test_multiple_random_seal_unseal() 126 gpr_free(data_buffer2); in alts_crypter_test_multiple_random_seal_unseal() 127 gpr_free(duplicate_buffer1); in alts_crypter_test_multiple_random_seal_unseal() 128 gpr_free(duplicate_buffer2); in alts_crypter_test_multiple_random_seal_unseal() 158 gpr_free(corrupted_data_buffer); in alts_crypter_test_corrupted_unseal() 159 gpr_free(error_message); in alts_crypter_test_corrupted_unseal() 177 gpr_free(corrupted_data_buffer); in alts_crypter_test_corrupted_unseal() 178 gpr_free(error_message); in alts_crypter_test_corrupted_unseal() [all …]
|
D | alts_counter_test.cc | 47 gpr_free(error_details); in alts_counter_test_input_sanity_check() 54 gpr_free(error_details); in alts_counter_test_input_sanity_check() 62 gpr_free(error_details); in alts_counter_test_input_sanity_check() 75 gpr_free(error_details); in alts_counter_test_input_sanity_check() 81 gpr_free(error_details); in alts_counter_test_input_sanity_check() 126 gpr_free(expected); in alts_counter_test_overflow_full_range() 164 gpr_free(expected); in alts_counter_test_overflow_single_increment()
|
D | frame_handler_test.cc | 57 if (handler->buffer != nullptr) gpr_free(handler->buffer); in destroy_frame_handler() 58 gpr_free(handler); in destroy_frame_handler() 105 gpr_free(bytes); in frame_n_deframe() 172 gpr_free(bytes); in frame_handler_test_bad_frame_length() 191 gpr_free(bytes); in frame_handler_test_unsupported_message_type() 213 gpr_free(bytes); in frame_handler_test_null_reader_byte_length() 227 gpr_free(bytes); in frame_handler_test_null_reader_bytes()
|
/third_party/grpc/test/core/slice/ |
D | b64_test.cc | 56 gpr_free(hello_b64); in test_simple_encode_decode_b64() 75 gpr_free(b64); in test_full_range_encode_decode_b64() 123 gpr_free(b64); in test_url_safe_unsafe_mismatch_failure() 129 gpr_free(b64); in test_url_safe_unsafe_mismatch_failure() 138 gpr_free(b64); in test_rfc4648_test_vectors() 142 gpr_free(b64); in test_rfc4648_test_vectors() 146 gpr_free(b64); in test_rfc4648_test_vectors() 150 gpr_free(b64); in test_rfc4648_test_vectors() 154 gpr_free(b64); in test_rfc4648_test_vectors() 158 gpr_free(b64); in test_rfc4648_test_vectors() [all …]
|
D | percent_encoding_test.cc | 43 gpr_free(raw_msg); in test_vector() 44 gpr_free(encoded_msg); in test_vector() 66 gpr_free(raw2encoded_msg); in test_vector() 67 gpr_free(encoded2raw_msg); in test_vector() 68 gpr_free(encoded2raw_permissive_msg); in test_vector() 93 gpr_free(permissive_unencoded_msg); in test_nonconformant_vector() 94 gpr_free(encoded_msg); in test_nonconformant_vector() 110 gpr_free(encoded2raw_permissive_msg); in test_nonconformant_vector()
|
/third_party/grpc/test/core/tsi/alts/zero_copy_frame_protector/ |
D | alts_iovec_record_protocol_test.cc | 136 gpr_free(key); in alts_iovec_record_protocol_test_fixture_create() 149 gpr_free(fixture); in alts_iovec_record_protocol_test_fixture_destroy() 192 gpr_free(var->header_buf); in alts_iovec_record_protocol_test_var_destroy() 193 gpr_free(var->tag_buf); in alts_iovec_record_protocol_test_var_destroy() 194 gpr_free(var->data_buf); in alts_iovec_record_protocol_test_var_destroy() 195 gpr_free(var->dup_buf); in alts_iovec_record_protocol_test_var_destroy() 196 gpr_free(var->data_iovec); in alts_iovec_record_protocol_test_var_destroy() 197 gpr_free(var->protected_buf); in alts_iovec_record_protocol_test_var_destroy() 198 gpr_free(var); in alts_iovec_record_protocol_test_var_destroy() 213 gpr_free(var->data_iovec); in integrity_only_random_seal_unseal() [all …]
|
/third_party/grpc/src/core/lib/http/ |
D | parser.cc | 232 gpr_free(hdr.key); in add_header() 233 gpr_free(hdr.value); in add_header() 354 gpr_free(request->body); in grpc_http_request_destroy() 356 gpr_free(request->hdrs[i].key); in grpc_http_request_destroy() 357 gpr_free(request->hdrs[i].value); in grpc_http_request_destroy() 359 gpr_free(request->hdrs); in grpc_http_request_destroy() 360 gpr_free(request->method); in grpc_http_request_destroy() 361 gpr_free(request->path); in grpc_http_request_destroy() 366 gpr_free(response->body); in grpc_http_response_destroy() 368 gpr_free(response->hdrs[i].key); in grpc_http_response_destroy() [all …]
|
/third_party/grpc/src/core/lib/security/credentials/ssl/ |
D | ssl_credentials.cc | 41 gpr_free(const_cast<char*>(kp[i].private_key)); in grpc_tsi_ssl_pem_key_cert_pairs_destroy() 42 gpr_free(const_cast<char*>(kp[i].cert_chain)); in grpc_tsi_ssl_pem_key_cert_pairs_destroy() 44 gpr_free(kp); in grpc_tsi_ssl_pem_key_cert_pairs_destroy() 55 gpr_free(config_.pem_root_certs); in ~grpc_ssl_credentials() 190 gpr_free(config_.pem_root_certs); in ~grpc_ssl_server_credentials() 266 gpr_free(const_cast<char*>(config->pem_key_cert_pairs[i].private_key)); in grpc_ssl_server_certificate_config_destroy() 267 gpr_free(const_cast<char*>(config->pem_key_cert_pairs[i].cert_chain)); in grpc_ssl_server_certificate_config_destroy() 269 gpr_free(config->pem_key_cert_pairs); in grpc_ssl_server_certificate_config_destroy() 270 gpr_free(config->pem_root_certs); in grpc_ssl_server_certificate_config_destroy() 271 gpr_free(config); in grpc_ssl_server_certificate_config_destroy() [all …]
|
/third_party/grpc/test/core/http/ |
D | httpscli_test.cc | 102 gpr_free(host); in test_get() 142 gpr_free(host); in test_post() 189 gpr_free(pem_file); in main() 197 gpr_free(args[0]); in main() 198 if (arg_shift) gpr_free(args[1]); in main() 199 gpr_free(args[2 + arg_shift]); in main() 200 gpr_free(root); in main() 225 gpr_free(grpc_polling_entity_pollset(&g_pops)); in main()
|
D | httpcli_test.cc | 98 gpr_free(host); in test_get() 137 gpr_free(host); in test_post() 189 gpr_free(args[0]); in main() 190 if (arg_shift) gpr_free(args[1]); in main() 191 gpr_free(args[2 + arg_shift]); in main() 192 gpr_free(root); in main() 213 gpr_free(grpc_polling_entity_pollset(&g_pops)); in main()
|
/third_party/grpc/doc/ |
D | security_audit.md | 14 GRP-01-002 describes a programming pattern in gRPC Core where `gpr_free` is called and then the poi… 16 …ng it harder to generate memory-related bugs. There are also plans to remove `gpr_free` in general. 23 ### Alternative #1: Rewrite gpr_free to take void\*\* 24 One solution is to change the API of `gpr_free` so that it automatically nulls the given pointer af… 27 gpr_free (void** ptr) { 35 …gnificant concern as we are now unconditionally adding a store to every gpr_free call, and there a… 37 … called by the constructor initializer list. If this thing needs to be `gpr_free`'d using the prop… 39 Another concern is readability - this `gpr_free` interface is less intuitive than the current one. 43 ### Alternative #2: Add another gpr_free to the Core API 44 …n alternative `gpr_free` that nulls the given pointer is undesirable because we cannot enforce tha… [all …]
|
/third_party/grpc/src/cpp/server/channelz/ |
D | channelz_service.cc | 49 gpr_free(json_str); in GetTopChannels() 65 gpr_free(json_str); in GetServers() 81 gpr_free(json_str); in GetServer() 99 gpr_free(json_str); in GetServerSockets() 114 gpr_free(json_str); in GetChannel() 131 gpr_free(json_str); in GetSubchannel() 146 gpr_free(json_str); in GetSocket()
|
/third_party/grpc/test/core/transport/chttp2/ |
D | bin_encoder_test.cc | 42 gpr_free(hs); in expect_slice_eq() 43 gpr_free(he); in expect_slice_eq() 80 gpr_free(t); in expect_combined_equiv() 81 gpr_free(e); in expect_combined_equiv() 82 gpr_free(g); in expect_combined_equiv()
|
/third_party/grpc/test/core/tsi/ |
D | transport_security_test_lib.cc | 72 gpr_free(args->handshake_buffer); in handshaker_args_destroy() 74 gpr_free(args); in handshaker_args_destroy() 232 gpr_free(protected_buffer); in tsi_test_frame_protector_send_message_to_peer() 287 gpr_free(read_buffer); in tsi_test_frame_protector_receive_message_from_peer() 288 gpr_free(message_buffer); in tsi_test_frame_protector_receive_message_from_peer() 449 gpr_free(server_received_message); in tsi_test_do_ping_pong() 450 gpr_free(client_received_message); in tsi_test_do_ping_pong() 582 gpr_free(config->client_message); in tsi_test_frame_protector_config_destroy() 583 gpr_free(config->server_message); in tsi_test_frame_protector_config_destroy() 584 gpr_free(config); in tsi_test_frame_protector_config_destroy() [all …]
|
D | ssl_transport_security_test.cc | 369 gpr_free((void*)kp.private_key); in ssl_test_pem_key_cert_pair_destroy() 370 gpr_free((void*)kp.cert_chain); in ssl_test_pem_key_cert_pair_destroy() 382 gpr_free(const_cast<char*>(alpn_lib->server_alpn_protocols[i])); in ssl_test_destruct() 384 gpr_free(alpn_lib->server_alpn_protocols); in ssl_test_destruct() 386 gpr_free(const_cast<char*>(alpn_lib->client_alpn_protocols[i])); in ssl_test_destruct() 388 gpr_free(alpn_lib->client_alpn_protocols); in ssl_test_destruct() 389 gpr_free(alpn_lib); in ssl_test_destruct() 396 gpr_free(key_cert_lib->server_pem_key_cert_pairs); in ssl_test_destruct() 401 gpr_free(key_cert_lib->bad_server_pem_key_cert_pairs); in ssl_test_destruct() 405 gpr_free(key_cert_lib->root_cert); in ssl_test_destruct() [all …]
|
/third_party/grpc/test/core/util/ |
D | subprocess_windows.cc | 51 gpr_free(args); in gpr_subprocess_create() 59 gpr_free(args_tchar); in gpr_subprocess_create() 62 gpr_free(args_tchar); in gpr_subprocess_create() 82 gpr_free(p); in gpr_subprocess_destroy()
|
/third_party/grpc/src/core/lib/channel/ |
D | channel_stack_builder.cc | 69 gpr_free(b->target); in grpc_channel_stack_builder_set_target() 90 gpr_free(it); in grpc_channel_stack_builder_iterator_destroy() 209 gpr_free(it->node); in grpc_channel_stack_builder_remove_filter() 260 gpr_free(p); in grpc_channel_stack_builder_destroy() 266 gpr_free(builder->target); in grpc_channel_stack_builder_destroy() 267 gpr_free(builder); in grpc_channel_stack_builder_destroy() 304 gpr_free(*result); in grpc_channel_stack_builder_finish() 320 gpr_free(const_cast<grpc_channel_filter**>(filters)); in grpc_channel_stack_builder_finish()
|
/third_party/grpc/src/core/lib/security/credentials/jwt/ |
D | json_token.cc | 137 gpr_free(json_key->client_id); in grpc_auth_json_key_destruct() 141 gpr_free(json_key->private_key_id); in grpc_auth_json_key_destruct() 145 gpr_free(json_key->client_email); in grpc_auth_json_key_destruct() 209 gpr_free(str1); in dot_concat_and_free_strings() 210 gpr_free(str2); in dot_concat_and_free_strings() 261 if (sig != nullptr) gpr_free(sig); in compute_and_encode_signature() 278 gpr_free(to_sign); in grpc_jwt_encode_and_sign()
|
/third_party/grpc/test/core/iomgr/ |
D | load_file_test.cc | 60 gpr_free(tmp_name); in test_load_empty_file() 83 gpr_free(tmp_name); in test_load_failure() 115 gpr_free(tmp_name); in test_load_small_file() 149 gpr_free(tmp_name); in test_load_big_file() 151 gpr_free(buffer); in test_load_big_file()
|
/third_party/grpc/test/core/security/ |
D | jwt_verifier_test.cc | 376 gpr_free(key_str); in test_jwt_verifier_google_email_issuer_success() 388 gpr_free(jwt); in test_jwt_verifier_google_email_issuer_success() 409 gpr_free(key_str); in test_jwt_verifier_custom_email_issuer_success() 421 gpr_free(jwt); in test_jwt_verifier_custom_email_issuer_success() 456 gpr_free(key_str); in test_jwt_verifier_url_issuer_success() 468 gpr_free(jwt); in test_jwt_verifier_url_issuer_success() 495 gpr_free(key_str); in test_jwt_verifier_url_issuer_bad_config() 508 gpr_free(jwt); in test_jwt_verifier_url_issuer_bad_config() 518 gpr_free(key_str); in test_jwt_verifier_bad_json_key() 531 gpr_free(jwt); in test_jwt_verifier_bad_json_key() [all …]
|
D | json_token_test.cc | 116 gpr_free(json_string); in test_parse_json_key_success() 132 gpr_free(json_string); in test_parse_json_key_failure_bad_json() 148 gpr_free(json_string); in test_parse_json_key_failure_no_type() 163 gpr_free(json_string); in test_parse_json_key_failure_no_client_id() 177 gpr_free(json_string); in test_parse_json_key_failure_no_client_email() 192 gpr_free(json_string); in test_parse_json_key_failure_no_private_key_id() 216 gpr_free(b64); in parse_json_part_from_jwt() 360 gpr_free(json_string); in test_jwt_encode_and_sign() 362 gpr_free(jwt); in test_jwt_encode_and_sign()
|