examples/dvbinfo/tcp.c: Resource leak (CID 17269)
The code does not leak a socket descriptor while looping over addrinfo pointer structs.However initializing s_ctl to -1 again after calling close(s_ctl) is good practise.
Showing
Please register or sign in to comment