diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-17 14:03:36 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-17 14:03:36 +0000 |
commit | 06fe5bd9e6f778a23f08cec1fa8290b7a5bd4277 (patch) | |
tree | 1a2bd1b2bbd16a28509f843c8db0648bc2f12c29 /src/ats/ats_api_performance.c | |
parent | 7402a01c58bc72833e5a126bc204a21d8db908d2 (diff) | |
download | gnunet-06fe5bd9e6f778a23f08cec1fa8290b7a5bd4277.tar.gz gnunet-06fe5bd9e6f778a23f08cec1fa8290b7a5bd4277.zip |
fix
Diffstat (limited to 'src/ats/ats_api_performance.c')
-rw-r--r-- | src/ats/ats_api_performance.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ats/ats_api_performance.c b/src/ats/ats_api_performance.c index 47f6180f6..ae83edcc7 100644 --- a/src/ats/ats_api_performance.c +++ b/src/ats/ats_api_performance.c | |||
@@ -516,7 +516,11 @@ GNUNET_ATS_performance_done (struct GNUNET_ATS_PerformanceHandle *ph) | |||
516 | GNUNET_SCHEDULER_cancel (ph->task); | 516 | GNUNET_SCHEDULER_cancel (ph->task); |
517 | ph->task = GNUNET_SCHEDULER_NO_TASK; | 517 | ph->task = GNUNET_SCHEDULER_NO_TASK; |
518 | } | 518 | } |
519 | GNUNET_CLIENT_disconnect (ph->client, GNUNET_NO); | 519 | if (NULL != client) |
520 | { | ||
521 | GNUNET_CLIENT_disconnect (ph->client, GNUNET_NO); | ||
522 | ph->client = NULL; | ||
523 | } | ||
520 | GNUNET_free (ph); | 524 | GNUNET_free (ph); |
521 | } | 525 | } |
522 | 526 | ||