X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=client_common.c;h=5bce7fb4c21d7a9dfaa6e7e0a220fe57bc7ad8e0;hp=c1e23f7a53d228bde4b3c26149432a71029327ad;hb=343a65bc48b4e0cda4d9a14afcd7e96cca9c5de9;hpb=c09999a00aa049418b7ea41428ee5aedfcd1e889 diff --git a/client_common.c b/client_common.c index c1e23f7a..5bce7fb4 100644 --- a/client_common.c +++ b/client_common.c @@ -64,6 +64,7 @@ void client_close(struct client_task *ct) disable_crypt(ct->fd); close(ct->fd); } + free(ct->buf); free(ct->user); free(ct->config_file); free(ct->key_file); @@ -327,6 +328,7 @@ int client_open(int argc, char *argv[], struct client_task **ct_ptr, int ret; struct client_task *ct = para_calloc(sizeof(struct client_task)); + ct->buf = para_malloc(CLIENT_BUFSIZE); *ct_ptr = ct; ct->fd = -1; ret = -E_CLIENT_SYNTAX;