From 78424fb78bf9f9ca4838d8c021adb17da9028ee6 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 7 Sep 2010 08:43:47 +0000 Subject: [PATCH] leak --- src/fs/test_gnunet_service_fs_migration.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/fs/test_gnunet_service_fs_migration.c b/src/fs/test_gnunet_service_fs_migration.c index 67417d81c..89750b368 100644 --- a/src/fs/test_gnunet_service_fs_migration.c +++ b/src/fs/test_gnunet_service_fs_migration.c @@ -101,6 +101,7 @@ do_download (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Failed to stop source daemon: %s\n", emsg); + GNUNET_FS_uri_destroy (uri); ok = 1; return; } @@ -114,6 +115,7 @@ do_download (void *cls, 1, SEED, uri, VERBOSE, &do_stop, NULL); + GNUNET_FS_uri_destroy (uri); } @@ -152,10 +154,10 @@ do_wait (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Waiting to allow content to migrate\n"); d = GNUNET_FS_uri_dup (uri); - GNUNET_SCHEDULER_add_delayed (sched, - MIGRATION_DELAY, - &stop_source_peer, - d); + (void) GNUNET_SCHEDULER_add_delayed (sched, + MIGRATION_DELAY, + &stop_source_peer, + d); } -- 2.25.1