X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=client_common.c;h=58dbdb4bac00f09401172a2d1930021b38aa49e1;hp=48b46da44e73768335724790a2cb973459dd66de;hb=34762fdc56d5294c15e03fda433ecfccdc6c5fb2;hpb=ce2bb6c458275ec6c0a115a2c814a15761474f11 diff --git a/client_common.c b/client_common.c index 48b46da4..58dbdb4b 100644 --- a/client_common.c +++ b/client_common.c @@ -81,6 +81,7 @@ void client_close(struct private_client_data *pcd) free(pcd->user); free(pcd->config_file); free(pcd->key_file); + client_cmdline_parser_free(&pcd->conf); free(pcd); } @@ -179,6 +180,7 @@ out: if (ret < 0) { PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret)); client_close(pcd); + *pcd_ptr = NULL; } return ret; }