Commit 41b46e5a authored by masayuki.harada's avatar masayuki.harada Committed by Haruki NAOI

Fix double free in release sequence.

(cherry picked from commit 8186060d940d1c47a7f8309382173c24365dfbab)
parent 004bacb9
......@@ -191,9 +191,7 @@ int s1ap_ue_context_release_complete(instance_t instance,
ue_context_p->eNB_ue_s1ap_id, ue_context_p->mme_ue_s1ap_id,
ue_context_p->ue_state);
}*/
for(int cnt=0;cnt < out->protocolIEs.list.count; cnt++){
free(out->protocolIEs.list.array[cnt]);
}
return 0;
}
......@@ -325,9 +323,6 @@ int s1ap_ue_context_release_req(instance_t instance,
ue_context_p->mme_ref->assoc_id, buffer,
length, ue_context_p->tx_stream);
for(int cnt=0;cnt < out->protocolIEs.list.count; cnt++){
free(out->protocolIEs.list.array[cnt]);
}
return 0;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment