X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=recv.c;h=52f457fc29b68e61ba017079511145f4e3120885;hp=df1afb3685ff05dea7a9278b47ef9ef7e9a8971f;hb=4a4d8f266a79275d7b2c902dc69b5ec8d46406b2;hpb=a118b7220a705ad1f7831270018ee357d40242db diff --git a/recv.c b/recv.c index df1afb36..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); - r->free_config(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;