diff options
Diffstat (limited to 'src/set')
-rw-r--r-- | src/set/gnunet-service-set.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/set/gnunet-service-set.c b/src/set/gnunet-service-set.c index 27c8d3bc0..13bb38292 100644 --- a/src/set/gnunet-service-set.c +++ b/src/set/gnunet-service-set.c | |||
@@ -284,6 +284,7 @@ void | |||
284 | _GSS_operation_destroy (struct Operation *op) | 284 | _GSS_operation_destroy (struct Operation *op) |
285 | { | 285 | { |
286 | struct Set *set; | 286 | struct Set *set; |
287 | struct GNUNET_MESH_Channel *channel; | ||
287 | 288 | ||
288 | if (NULL == op->vt) | 289 | if (NULL == op->vt) |
289 | return; | 290 | return; |
@@ -316,10 +317,10 @@ _GSS_operation_destroy (struct Operation *op) | |||
316 | op->mq = NULL; | 317 | op->mq = NULL; |
317 | } | 318 | } |
318 | 319 | ||
319 | if (NULL != op->channel) | 320 | if (NULL != (channel = op->channel)) |
320 | { | 321 | { |
321 | GNUNET_MESH_channel_destroy (op->channel); | ||
322 | op->channel = NULL; | 322 | op->channel = NULL; |
323 | GNUNET_MESH_channel_destroy (channel); | ||
323 | } | 324 | } |
324 | 325 | ||
325 | collect_generation_garbage (set); | 326 | collect_generation_garbage (set); |