X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=recv.c;h=52f457fc29b68e61ba017079511145f4e3120885;hp=5cd64cc7e6058cd7723c9abf847f36a23c8f0a0b;hb=e3272a316d113dd9c0c6f01f3087ab14f945e76b;hpb=5ec0d9ef2189e22b3ee80f661196b6ae0593a525 diff --git a/recv.c b/recv.c index 5cd64cc7..52f457fc 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. */ @@ -8,7 +8,6 @@ #include #include -#include #include #include "para.h" @@ -22,6 +21,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 +115,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;