diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-08-29 09:05:25 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-08-29 09:05:25 +0000 |
commit | 5f44b3dc2423bd1993d692613673f7f007b914ab (patch) | |
tree | 6a3f83a41e2ae1c5d434dd436099fdb3b84eafd2 /src/transport/test_plugin_transport.c | |
parent | 423481816cf9ca360c76212b9a61139d44c1384a (diff) | |
download | gnunet-5f44b3dc2423bd1993d692613673f7f007b914ab.tar.gz gnunet-5f44b3dc2423bd1993d692613673f7f007b914ab.zip |
- fix for unix
Diffstat (limited to 'src/transport/test_plugin_transport.c')
-rw-r--r-- | src/transport/test_plugin_transport.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c index 6632244e2..3bd0b7cb0 100644 --- a/src/transport/test_plugin_transport.c +++ b/src/transport/test_plugin_transport.c | |||
@@ -142,6 +142,9 @@ struct AddressWrapper | |||
142 | static void | 142 | static void |
143 | end () | 143 | end () |
144 | { | 144 | { |
145 | struct AddressWrapper *w; | ||
146 | int c = 0; | ||
147 | |||
145 | if (GNUNET_SCHEDULER_NO_TASK != timeout_task) | 148 | if (GNUNET_SCHEDULER_NO_TASK != timeout_task) |
146 | { | 149 | { |
147 | GNUNET_SCHEDULER_cancel (timeout_task); | 150 | GNUNET_SCHEDULER_cancel (timeout_task); |
@@ -149,6 +152,26 @@ end () | |||
149 | } | 152 | } |
150 | if (NULL != api) | 153 | if (NULL != api) |
151 | GNUNET_PLUGIN_unload (libname, api); | 154 | GNUNET_PLUGIN_unload (libname, api); |
155 | |||
156 | while (NULL != head) | ||
157 | { | ||
158 | w = head; | ||
159 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | ||
160 | _("Plugin did not remove address `%s' \n"), w->addrstring); | ||
161 | GNUNET_CONTAINER_DLL_remove (head, tail, w); | ||
162 | c ++; | ||
163 | GNUNET_free (w->addr); | ||
164 | GNUNET_free (w->addrstring); | ||
165 | GNUNET_free (w); | ||
166 | } | ||
167 | if (c > 0) | ||
168 | { | ||
169 | GNUNET_break (0); | ||
170 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | ||
171 | _("Plugin did not remove %u addresses \n"), c); | ||
172 | } | ||
173 | |||
174 | |||
152 | GNUNET_free (libname); | 175 | GNUNET_free (libname); |
153 | libname = NULL; | 176 | libname = NULL; |
154 | GNUNET_STATISTICS_destroy (stats, GNUNET_NO); | 177 | GNUNET_STATISTICS_destroy (stats, GNUNET_NO); |