From: Christian Grothoff Date: Tue, 7 Sep 2010 08:43:47 +0000 (+0000) Subject: leak X-Git-Tag: initial-import-from-subversion-38251~20432 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=78424fb78bf9f9ca4838d8c021adb17da9028ee6;p=oweals%2Fgnunet.git leak --- 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); }