diff options
-rw-r--r-- | src/testing/testing_peergroup.c | 4 |
1 files 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, | |||
652 | GNUNET_DISK_PERM_USER_WRITE); | 652 | GNUNET_DISK_PERM_USER_WRITE); |
653 | if (topo_ctx->file == NULL) | 653 | if (topo_ctx->file == NULL) |
654 | { | 654 | { |
655 | notify_cb(notify_cb_cls, "Failed to open output file!"); | 655 | notify_cb (notify_cb_cls, "Failed to open output file!"); |
656 | GNUNET_free (topo_ctx); | ||
656 | return; | 657 | return; |
657 | } | 658 | } |
658 | 659 | ||
@@ -661,7 +662,6 @@ GNUNET_TESTING_peergroup_topology_to_file(struct GNUNET_TESTING_PeerGroup *pg, | |||
661 | GNUNET_DISK_file_write(topo_ctx->file, temp_str, temp); | 662 | GNUNET_DISK_file_write(topo_ctx->file, temp_str, temp); |
662 | GNUNET_free_non_null(temp_str); | 663 | GNUNET_free_non_null(temp_str); |
663 | GNUNET_TESTING_get_topology(pg, &write_topology_cb, topo_ctx); | 664 | GNUNET_TESTING_get_topology(pg, &write_topology_cb, topo_ctx); |
664 | return; | ||
665 | } | 665 | } |
666 | 666 | ||
667 | /** | 667 | /** |