client: Remove the buffer tree node on errors.
authorAndre Noll <maan@systemlinux.org>
Sat, 30 Jan 2010 13:24:17 +0000 (14:24 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 30 Jan 2010 13:24:17 +0000 (14:24 +0100)
This fixes restarting of the status client task in case para_server is being restarted.

client_common.c

index ded01b1..934758d 100644 (file)
@@ -404,6 +404,7 @@ out:
        free(home);
        if (ret < 0) {
                PARA_ERROR_LOG("%s\n", para_strerror(-ret));
+               btr_remove_node(ct->btrn);
                btr_free_node(ct->btrn);
                client_close(ct);
                *ct_ptr = NULL;