Skip to content
Snippets Groups Projects
  • Paul Marks's avatar
    cb09e700
    Fix a memory leak in grpc_udp_server_add_port() · cb09e700
    Paul Marks authored
    This occurred when running a QUIC test in an IPv6-only environment:
    
    E1123 16:04:20.282041  159850 heap-profile-table.cc:489] RAW: Leak of 1360 bytes in 17 objects allocated from:
            @ 0x7f160b8923ab gpr_malloc
            @ 0x7f160b8cff27 copy_error_and_unref
            @ 0x7f160b8d0151 grpc_error_set_str
            @ 0x7f160b8e3ff8 error_for_fd
            @ 0x7f160b8e3edd grpc_create_dualstack_socket
            @ 0x7f160b8ea5c3 grpc_udp_server_add_port
            @ 0x7f1627a65d20 grpc_server_add_quic_port
            @ 0x7f1627a6bea4 grpc::(anonymous namespace)::QuicServerCredentialsImpl::AddPortToServer()
            ...
    cb09e700
    History
    Fix a memory leak in grpc_udp_server_add_port()
    Paul Marks authored
    This occurred when running a QUIC test in an IPv6-only environment:
    
    E1123 16:04:20.282041  159850 heap-profile-table.cc:489] RAW: Leak of 1360 bytes in 17 objects allocated from:
            @ 0x7f160b8923ab gpr_malloc
            @ 0x7f160b8cff27 copy_error_and_unref
            @ 0x7f160b8d0151 grpc_error_set_str
            @ 0x7f160b8e3ff8 error_for_fd
            @ 0x7f160b8e3edd grpc_create_dualstack_socket
            @ 0x7f160b8ea5c3 grpc_udp_server_add_port
            @ 0x7f1627a65d20 grpc_server_add_quic_port
            @ 0x7f1627a6bea4 grpc::(anonymous namespace)::QuicServerCredentialsImpl::AddPortToServer()
            ...