From 6fad08b4421440444a1c71ea7a5b80ef87066a01 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 19 Jul 2011 13:00:29 +0000 Subject: [PATCH] free --- src/testing/testing_peergroup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } /** -- 2.25.1