r2655: fixed an error in the shutdown of the sock->transport->session->tree
[jelmer/samba4-debian.git] / source / libcli / raw / clisocket.c
index 566367233379fbb7953867718e64c08b2ef96e75..8481bc73e2e00cf833c79be9cbb9ff86faefc6f1 100644 (file)
@@ -104,6 +104,7 @@ void smbcli_sock_close(struct smbcli_socket *sock)
        sock->reference_count--;
        if (sock->reference_count <= 0) {
                smbcli_sock_dead(sock);
+               talloc_free(sock);
        }
 }