Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[leak] Variable "sa" going out of scope leaks the storage it points to. #18353

@thaystg

Description

@thaystg
** CID 1457244:  Resource leaks  (RESOURCE_LEAK)
/mono/metadata/w32socket.c: 1525 in ves_icall_System_Net_Sockets_Socket_SendTo_icall()

*** CID 1457244:  Resource leaks  (RESOURCE_LEAK)
/mono/metadata/w32socket.c: 1525 in ves_icall_System_Net_Sockets_Socket_SendTo_icall()
1519            socklen_t sa_size;
1520           
1521            *werror = 0;
1522     
1523            sa = create_sockaddr_from_handle (sockaddr, &sa_size, werror, error);
1524            if (*werror != 0 || !is_ok (error))
>>>     CID 1457244:  Resource leaks  (RESOURCE_LEAK)
>>>     Variable "sa" going out of scope leaks the storage it points to.
1525                    return 0;
1526           
1527            LOGDEBUG (g_message("%s: Sending %d bytes", __func__, count));
1528     
1529            sendflags = convert_socketflags (flags);
1530            if (sendflags == -1) {

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions