From: Andre Noll Date: Sat, 30 Jan 2010 13:24:17 +0000 (+0100) Subject: client: Remove the buffer tree node on errors. X-Git-Tag: v0.4.2~65 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=621873570519f6536440a2407224cf17ec2141e8 client: Remove the buffer tree node on errors. This fixes restarting of the status client task in case para_server is being restarted. --- diff --git a/client_common.c b/client_common.c index ded01b13..934758dd 100644 --- a/client_common.c +++ b/client_common.c @@ -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;