diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-03-05 21:04:31 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-03-05 21:04:31 +0000 |
commit | c55e10680cf160ef57ee9519c566307c1b664304 (patch) | |
tree | 69f2a70a755b3c493bb77f0dd5ce0b6c987cc242 /src/statistics/gnunet-service-statistics.c | |
parent | e3bdfdc49e5691ec2949d8e6ecf4cab469b9e224 (diff) | |
download | gnunet-c55e10680cf160ef57ee9519c566307c1b664304.tar.gz gnunet-c55e10680cf160ef57ee9519c566307c1b664304.zip |
fix
Diffstat (limited to 'src/statistics/gnunet-service-statistics.c')
-rw-r--r-- | src/statistics/gnunet-service-statistics.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/statistics/gnunet-service-statistics.c b/src/statistics/gnunet-service-statistics.c index 544bf6a43..27102f070 100644 --- a/src/statistics/gnunet-service-statistics.c +++ b/src/statistics/gnunet-service-statistics.c | |||
@@ -682,13 +682,13 @@ do_shutdown () | |||
682 | { | 682 | { |
683 | struct WatchEntry *we; | 683 | struct WatchEntry *we; |
684 | struct StatsEntry *se; | 684 | struct StatsEntry *se; |
685 | struct GNUNET_SERVER_Handle *s; | ||
685 | 686 | ||
687 | if (NULL == nc) | ||
688 | return; | ||
686 | save (); | 689 | save (); |
687 | if (NULL != nc) | 690 | GNUNET_SERVER_notification_context_destroy (nc); |
688 | { | 691 | nc = NULL; |
689 | GNUNET_SERVER_notification_context_destroy (nc); | ||
690 | nc = NULL; | ||
691 | } | ||
692 | GNUNET_assert (NULL == client_head); | 692 | GNUNET_assert (NULL == client_head); |
693 | while (NULL != (se = start)) | 693 | while (NULL != (se = start)) |
694 | { | 694 | { |
@@ -701,7 +701,10 @@ do_shutdown () | |||
701 | } | 701 | } |
702 | GNUNET_free (se); | 702 | GNUNET_free (se); |
703 | } | 703 | } |
704 | GNUNET_SERVER_destroy (srv); | 704 | GNUNET_assert (NULL != srv); |
705 | s = srv; | ||
706 | srv = NULL; | ||
707 | GNUNET_SERVER_destroy (s); | ||
705 | } | 708 | } |
706 | 709 | ||
707 | 710 | ||