From: Christian Grothoff Date: Tue, 19 Jul 2011 13:00:29 +0000 (+0000) Subject: free X-Git-Tag: initial-import-from-subversion-38251~17716 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6fad08b4421440444a1c71ea7a5b80ef87066a01;p=oweals%2Fgnunet.git free --- diff --git a/src/testing/testing_peergroup.c b/src/testing/testing_peergroup.c index 25a04df07..81294a6e3 100644 --- a/src/testing/testing_peergroup.c +++ b/src/testing/testing_peergroup.c @@ -652,7 +652,8 @@ GNUNET_TESTING_peergroup_topology_to_file(struct GNUNET_TESTING_PeerGroup *pg, GNUNET_DISK_PERM_USER_WRITE); if (topo_ctx->file == NULL) { - notify_cb(notify_cb_cls, "Failed to open output file!"); + notify_cb (notify_cb_cls, "Failed to open output file!"); + GNUNET_free (topo_ctx); return; } @@ -661,7 +662,6 @@ GNUNET_TESTING_peergroup_topology_to_file(struct GNUNET_TESTING_PeerGroup *pg, GNUNET_DISK_file_write(topo_ctx->file, temp_str, temp); GNUNET_free_non_null(temp_str); GNUNET_TESTING_get_topology(pg, &write_topology_cb, topo_ctx); - return; } /**