When ss_connect fails we put socket refcounter
and release sock (when it becames equal to zero),
but socket was not closed. That leads to error
message in dmesg and some socket resources could
be not freed. This patch fix this behaviour, now
we close socket before free it.
When
ss_connect
fails we put socket refcounter and release sock (when it becames equal to zero), but socket was not closed. That leads to error message in dmesg and some socket resources could be not freed. This patch fix this behaviour, now we close socket before free it.