aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/test_testbed_api_controllerlink.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-09-05 11:40:07 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-09-05 11:40:07 +0000
commitacb2568116de77fcac08ab1ac8b4df81a886f4be (patch)
tree78b7bd0a722045add429d1595ade521b817a95c7 /src/testbed/test_testbed_api_controllerlink.c
parent8f8ed9394c1889f6b302511ac400fa4d55fb1e78 (diff)
downloadgnunet-acb2568116de77fcac08ab1ac8b4df81a886f4be.tar.gz
gnunet-acb2568116de77fcac08ab1ac8b4df81a886f4be.zip
- fix memleaks
Diffstat (limited to 'src/testbed/test_testbed_api_controllerlink.c')
-rw-r--r--src/testbed/test_testbed_api_controllerlink.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/testbed/test_testbed_api_controllerlink.c b/src/testbed/test_testbed_api_controllerlink.c
index c60b8227e..471ab3a94 100644
--- a/src/testbed/test_testbed_api_controllerlink.c
+++ b/src/testbed/test_testbed_api_controllerlink.c
@@ -181,7 +181,12 @@ enum Stage
181 SLAVE3_LINK_SUCCESS, 181 SLAVE3_LINK_SUCCESS,
182 182
183 /** 183 /**
184 * Destory master peer and mark test as success 184 * Master peer destoryed. Destory slave 3 peer
185 */
186 MASTER_PEER_DESTROY_SUCCESS,
187
188 /**
189 * Slave 3 peer destroyed. Mark test as success
185 */ 190 */
186 SUCCESS, 191 SUCCESS,
187 192
@@ -631,6 +636,11 @@ controller_cb (void *cls, const struct GNUNET_TESTBED_EventInformation *event)
631 break; 636 break;
632 case SLAVE3_LINK_SUCCESS: 637 case SLAVE3_LINK_SUCCESS:
633 check_operation_success (event); 638 check_operation_success (event);
639 result = MASTER_PEER_DESTROY_SUCCESS;
640 GNUNET_TESTBED_operation_done (op);
641 op = GNUNET_TESTBED_peer_destroy (slave3_peer);
642 break;
643 case MASTER_PEER_DESTROY_SUCCESS:
634 result = SUCCESS; 644 result = SUCCESS;
635 GNUNET_TESTBED_operation_done (op); 645 GNUNET_TESTBED_operation_done (op);
636 op = NULL; 646 op = NULL;