diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-10 16:51:17 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-10 16:51:17 +0000 |
commit | b861288c1689fe2274fb7d08e207e8db5af3c716 (patch) | |
tree | c74bac6cfee4e3a71ce0114981b2b9d05223d75a /src/ats | |
parent | 75264ef067a70a1b0c01dcab46264d4f31217a5f (diff) | |
download | gnunet-b861288c1689fe2274fb7d08e207e8db5af3c716.tar.gz gnunet-b861288c1689fe2274fb7d08e207e8db5af3c716.zip |
-fix typo
Diffstat (limited to 'src/ats')
-rw-r--r-- | src/ats/ats_api_scheduling.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ats/ats_api_scheduling.c b/src/ats/ats_api_scheduling.c index e4db144d0..ed82dd2ad 100644 --- a/src/ats/ats_api_scheduling.c +++ b/src/ats/ats_api_scheduling.c | |||
@@ -615,6 +615,8 @@ GNUNET_ATS_scheduling_init (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
615 | void | 615 | void |
616 | GNUNET_ATS_scheduling_done (struct GNUNET_ATS_SchedulingHandle *sh) | 616 | GNUNET_ATS_scheduling_done (struct GNUNET_ATS_SchedulingHandle *sh) |
617 | { | 617 | { |
618 | unsigned int i; | ||
619 | |||
618 | if (NULL != sh->mq) | 620 | if (NULL != sh->mq) |
619 | { | 621 | { |
620 | GNUNET_MQ_destroy (sh->mq); | 622 | GNUNET_MQ_destroy (sh->mq); |
@@ -630,6 +632,11 @@ GNUNET_ATS_scheduling_done (struct GNUNET_ATS_SchedulingHandle *sh) | |||
630 | GNUNET_SCHEDULER_cancel (sh->task); | 632 | GNUNET_SCHEDULER_cancel (sh->task); |
631 | sh->task = NULL; | 633 | sh->task = NULL; |
632 | } | 634 | } |
635 | for (i=0;i<sh->session_array_size;i++) | ||
636 | { | ||
637 | GNUNET_free_non_null (sh->session_array[i]); | ||
638 | sh->session_array[i] = NULL; | ||
639 | } | ||
633 | GNUNET_array_grow (sh->session_array, | 640 | GNUNET_array_grow (sh->session_array, |
634 | sh->session_array_size, | 641 | sh->session_array_size, |
635 | 0); | 642 | 0); |