|  | @@ -976,9 +976,7 @@ static tsi_result ssl_handshaker_extract_peer(tsi_handshaker *self,
 | 
	
		
			
				|  |  |    if (alpn_selected != NULL) {
 | 
	
		
			
				|  |  |      size_t i;
 | 
	
		
			
				|  |  |      tsi_peer_property *new_properties =
 | 
	
		
			
				|  |  | -        gpr_malloc(sizeof(*new_properties) * (peer->property_count + 1));
 | 
	
		
			
				|  |  | -    memset(new_properties, 0,
 | 
	
		
			
				|  |  | -           sizeof(*new_properties) * (peer->property_count + 1));
 | 
	
		
			
				|  |  | +        gpr_zalloc(sizeof(*new_properties) * (peer->property_count + 1));
 | 
	
		
			
				|  |  |      for (i = 0; i < peer->property_count; i++) {
 | 
	
		
			
				|  |  |        new_properties[i] = peer->properties[i];
 | 
	
		
			
				|  |  |      }
 | 
	
	
		
			
				|  | @@ -1002,8 +1000,7 @@ static tsi_result ssl_handshaker_create_frame_protector(
 | 
	
		
			
				|  |  |    size_t actual_max_output_protected_frame_size =
 | 
	
		
			
				|  |  |        TSI_SSL_MAX_PROTECTED_FRAME_SIZE_UPPER_BOUND;
 | 
	
		
			
				|  |  |    tsi_ssl_handshaker *impl = (tsi_ssl_handshaker *)self;
 | 
	
		
			
				|  |  | -  tsi_ssl_frame_protector *protector_impl = gpr_malloc(sizeof(*protector_impl));
 | 
	
		
			
				|  |  | -  memset(protector_impl, 0, sizeof(*protector_impl));
 | 
	
		
			
				|  |  | +  tsi_ssl_frame_protector *protector_impl = gpr_zalloc(sizeof(*protector_impl));
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    if (max_output_protected_frame_size != NULL) {
 | 
	
		
			
				|  |  |      if (*max_output_protected_frame_size >
 | 
	
	
		
			
				|  | @@ -1119,8 +1116,7 @@ static tsi_result create_tsi_ssl_handshaker(SSL_CTX *ctx, int is_client,
 | 
	
		
			
				|  |  |      SSL_set_accept_state(ssl);
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -  impl = gpr_malloc(sizeof(*impl));
 | 
	
		
			
				|  |  | -  memset(impl, 0, sizeof(*impl));
 | 
	
		
			
				|  |  | +  impl = gpr_zalloc(sizeof(*impl));
 | 
	
		
			
				|  |  |    impl->ssl = ssl;
 | 
	
		
			
				|  |  |    impl->into_ssl = into_ssl;
 | 
	
		
			
				|  |  |    impl->from_ssl = from_ssl;
 | 
	
	
		
			
				|  | @@ -1338,8 +1334,7 @@ tsi_result tsi_create_ssl_client_handshaker_factory(
 | 
	
		
			
				|  |  |      return TSI_INVALID_ARGUMENT;
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -  impl = gpr_malloc(sizeof(*impl));
 | 
	
		
			
				|  |  | -  memset(impl, 0, sizeof(*impl));
 | 
	
		
			
				|  |  | +  impl = gpr_zalloc(sizeof(*impl));
 | 
	
		
			
				|  |  |    impl->ssl_context = ssl_context;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    do {
 | 
	
	
		
			
				|  | @@ -1433,17 +1428,13 @@ tsi_result tsi_create_ssl_server_handshaker_factory_ex(
 | 
	
		
			
				|  |  |      return TSI_INVALID_ARGUMENT;
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -  impl = gpr_malloc(sizeof(*impl));
 | 
	
		
			
				|  |  | -  memset(impl, 0, sizeof(*impl));
 | 
	
		
			
				|  |  | +  impl = gpr_zalloc(sizeof(*impl));
 | 
	
		
			
				|  |  |    impl->base.create_handshaker =
 | 
	
		
			
				|  |  |        ssl_server_handshaker_factory_create_handshaker;
 | 
	
		
			
				|  |  |    impl->base.destroy = ssl_server_handshaker_factory_destroy;
 | 
	
		
			
				|  |  | -  impl->ssl_contexts = gpr_malloc(key_cert_pair_count * sizeof(SSL_CTX *));
 | 
	
		
			
				|  |  | -  memset(impl->ssl_contexts, 0, key_cert_pair_count * sizeof(SSL_CTX *));
 | 
	
		
			
				|  |  | +  impl->ssl_contexts = gpr_zalloc(key_cert_pair_count * sizeof(SSL_CTX *));
 | 
	
		
			
				|  |  |    impl->ssl_context_x509_subject_names =
 | 
	
		
			
				|  |  | -      gpr_malloc(key_cert_pair_count * sizeof(tsi_peer));
 | 
	
		
			
				|  |  | -  memset(impl->ssl_context_x509_subject_names, 0,
 | 
	
		
			
				|  |  | -         key_cert_pair_count * sizeof(tsi_peer));
 | 
	
		
			
				|  |  | +      gpr_zalloc(key_cert_pair_count * sizeof(tsi_peer));
 | 
	
		
			
				|  |  |    if (impl->ssl_contexts == NULL ||
 | 
	
		
			
				|  |  |        impl->ssl_context_x509_subject_names == NULL) {
 | 
	
		
			
				|  |  |      tsi_ssl_handshaker_factory_destroy(&impl->base);
 |