X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=recv.c;h=ae8a1f663b725cbed40f763e0105fd04d2d4dcc9;hp=5cd64cc7e6058cd7723c9abf847f36a23c8f0a0b;hb=be9f7c9b442f7b723427a79f85774d5fa7718425;hpb=f42b5eccb6ec3364dc0500ffeffbe9d9ecab07bd diff --git a/recv.c b/recv.c index 5cd64cc7..ae8a1f66 100644 --- a/recv.c +++ b/recv.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2009 Andre Noll + * Copyright (C) 2005-2011 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -22,6 +22,7 @@ #include "error.h" #include "stdout.h" #include "buffer_tree.h" +#include "version.h" /** The gengetopt args info struct. */ static struct recv_args_info conf; @@ -115,7 +116,8 @@ out: r->close(&rn); btr_free_node(rn.btrn); btr_free_node(sot.btrn); - free(rn.conf); + if (rn.conf) + r->free_config(rn.conf); if (ret < 0) PARA_ERROR_LOG("%s\n", para_strerror(-ret)); return ret < 0? EXIT_FAILURE : EXIT_SUCCESS;