summaryrefslogtreecommitdiff
path: root/cesar/cp
diff options
context:
space:
mode:
authorNélio Laranjeiro2011-09-08 11:31:05 +0200
committerNélio Laranjeiro2011-09-22 16:45:17 +0200
commite7bf32494979af28db082a930d137b06d635727e (patch)
treefa3d730f66043795eb3a655b8ab6ca90692d6b84 /cesar/cp
parent61ee0ad83b09f6e1e659380dbc514c3801ad88ae (diff)
cesar/cp/cco/action: correctly release the reference of the STA, refs #2705
Diffstat (limited to 'cesar/cp')
-rw-r--r--cesar/cp/cco/action/src/handover.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cesar/cp/cco/action/src/handover.c b/cesar/cp/cco/action/src/handover.c
index ee97790067..6117b0d7ea 100644
--- a/cesar/cp/cco/action/src/handover.c
+++ b/cesar/cp/cco/action/src/handover.c
@@ -211,10 +211,7 @@ cp_cco_action_handover__cc_handover_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme)
else
{
if (sta)
- {
cp_cco_action_cco_selection__sta_remove (ctx, sta);
- slab_release (sta);
- }
/* Try another station to become the new CCo. */
res = cp_cco_action_handover__try_next_sta (ctx);
@@ -239,6 +236,8 @@ cp_cco_action_handover__cc_handover_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme)
cp_sta_core_stop_timed_or_cyclic_event (ctx,
&ctx->handover.handover_timeout);
}
+ if (sta)
+ slab_release (sta);
}
/**