Skip to content

Memory leaks on error in dead_pool.c

In parse_socks5_resolve_ptr_response() (dead_pool.c +325), the **result_hostname is allocated then passed to recv(). On error (r < 0) or with an orderly shutdown (r = 0) the memory is not freed causing the memory leak.

Here is a small patch fixing the leak.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information