diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-02-22 10:56:16 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-02-22 10:56:16 +0000 |
commit | 6b0c9713ef122b8cb0fb7fc12dca579db2c370ee (patch) | |
tree | 40cad51d156a59916ecdfd3761636bc10ac8a54e /src/testing/testing.c | |
parent | 391ab060f50b3c705c021c1cd0f73caffd7ef538 (diff) | |
download | gnunet-6b0c9713ef122b8cb0fb7fc12dca579db2c370ee.tar.gz gnunet-6b0c9713ef122b8cb0fb7fc12dca579db2c370ee.zip |
fix leaks, code cleanup
Diffstat (limited to 'src/testing/testing.c')
-rw-r--r-- | src/testing/testing.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testing/testing.c b/src/testing/testing.c index 3dd4af367..be3e96509 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c | |||
@@ -549,6 +549,7 @@ GNUNET_TESTING_daemon_stop (struct GNUNET_TESTING_Daemon *d, | |||
549 | GNUNET_free (d->cfgfile); | 549 | GNUNET_free (d->cfgfile); |
550 | GNUNET_free_non_null (d->hostname); | 550 | GNUNET_free_non_null (d->hostname); |
551 | GNUNET_free_non_null (d->username); | 551 | GNUNET_free_non_null (d->username); |
552 | GNUNET_free_non_null (d->shortname); | ||
552 | GNUNET_free (d); | 553 | GNUNET_free (d); |
553 | if (NULL != cb) | 554 | if (NULL != cb) |
554 | cb (cb_cls, NULL); | 555 | cb (cb_cls, NULL); |
@@ -779,7 +780,7 @@ notify_connect_result (void *cls, | |||
779 | ctx->d2th = NULL; | 780 | ctx->d2th = NULL; |
780 | GNUNET_CORE_disconnect (ctx->d1core); | 781 | GNUNET_CORE_disconnect (ctx->d1core); |
781 | ctx->d1core = NULL; | 782 | ctx->d1core = NULL; |
782 | 783 | GNUNET_free_non_null (ctx->hello); | |
783 | GNUNET_free (ctx); | 784 | GNUNET_free (ctx); |
784 | } | 785 | } |
785 | 786 | ||