aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/gnunet-service-testbed_peers.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-06-24 12:47:41 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-06-24 12:47:41 +0000
commit1e007a89197769e4e0f5ad36b583689a27f33cac (patch)
tree0fd01027c4f1feb0e6f9480d3a234fc9f3f35cea /src/testbed/gnunet-service-testbed_peers.c
parent3d046f081a476705931e0e27fe678936b2ed2f05 (diff)
downloadgnunet-1e007a89197769e4e0f5ad36b583689a27f33cac.tar.gz
gnunet-1e007a89197769e4e0f5ad36b583689a27f33cac.zip
- coverity fixes
Diffstat (limited to 'src/testbed/gnunet-service-testbed_peers.c')
-rw-r--r--src/testbed/gnunet-service-testbed_peers.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testbed/gnunet-service-testbed_peers.c b/src/testbed/gnunet-service-testbed_peers.c
index 34c1bf085..4fb6b2f80 100644
--- a/src/testbed/gnunet-service-testbed_peers.c
+++ b/src/testbed/gnunet-service-testbed_peers.c
@@ -1273,8 +1273,12 @@ shutdown_peers_timeout_cb (void *cls,
1273 GNUNET_assert (0 < hc->nslaves); 1273 GNUNET_assert (0 < hc->nslaves);
1274 hc->nslaves--; 1274 hc->nslaves--;
1275 if (0 == hc->nslaves) 1275 if (0 == hc->nslaves)
1276 {
1276 GST_send_operation_fail_msg (fo_ctxt->client, fo_ctxt->operation_id, 1277 GST_send_operation_fail_msg (fo_ctxt->client, fo_ctxt->operation_id,
1277 "Timeout at a slave controller"); 1278 "Timeout at a slave controller");
1279 GNUNET_free (hc);
1280 hc = NULL;
1281 }
1278 GNUNET_TESTBED_forward_operation_msg_cancel_ (fo_ctxt->opc); 1282 GNUNET_TESTBED_forward_operation_msg_cancel_ (fo_ctxt->opc);
1279 GNUNET_SERVER_client_drop (fo_ctxt->client); 1283 GNUNET_SERVER_client_drop (fo_ctxt->client);
1280 GNUNET_CONTAINER_DLL_remove (fopcq_head, fopcq_tail, fo_ctxt); 1284 GNUNET_CONTAINER_DLL_remove (fopcq_head, fopcq_tail, fo_ctxt);
@@ -1313,6 +1317,8 @@ shutdown_peers_reply_cb (void *cls,
1313 "Timeout at a slave controller"); 1317 "Timeout at a slave controller");
1314 else 1318 else
1315 GST_send_operation_success_msg (fo_ctxt->client, fo_ctxt->operation_id); 1319 GST_send_operation_success_msg (fo_ctxt->client, fo_ctxt->operation_id);
1320 GNUNET_free (hc);
1321 hc = NULL;
1316 } 1322 }
1317 GNUNET_SERVER_client_drop (fo_ctxt->client); 1323 GNUNET_SERVER_client_drop (fo_ctxt->client);
1318 GNUNET_CONTAINER_DLL_remove (fopcq_head, fopcq_tail, fo_ctxt); 1324 GNUNET_CONTAINER_DLL_remove (fopcq_head, fopcq_tail, fo_ctxt);