def nl_socket_free(sk):
if sk and sk.socket_instance:<EOL><INDENT>sk.socket_instance.close()<EOL><DEDENT>
Free a Netlink socket (closes the socket).

    https://github.com/thom311/libnl/blob/libnl3_2_25/lib/socket.c#L244

    Positional arguments:
    sk -- Netlink socket (nl_sock class instance).