]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 ded01b1388a629013f3be14bf4b31c876d97f512..934758dd8f8e5ed03ff2493fe18e0cd533fde977 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;