Added comments to show MRDC and free() hacks

This commit is contained in:
Melissa Elkadi
2021-05-13 13:45:47 -07:00
parent bc5677f4c4
commit bfa5d486e3
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -1731,7 +1731,9 @@ int x2ap_eNB_generate_ENDC_x2_SgNB_addition_request(
X2AP_ERROR("Failed to encode ENDC X2 SgNB_addition request message\n");
return -1;
}
//free(ie->value.choice.MeNBtoSgNBContainer.buf);
# if 0 //Melissa: This is a hack becasue we are trying to access this after free.
free(ie->value.choice.MeNBtoSgNBContainer.buf);
#endif
MSC_LOG_TX_MESSAGE (MSC_X2AP_SRC_ENB, MSC_X2AP_TARGET_ENB, NULL, 0, "0 X2Setup/initiatingMessage assoc_id %u", x2ap_eNB_data_p->assoc_id);
x2ap_eNB_itti_send_sctp_data_req(instance_p->instance, x2ap_eNB_data_p->assoc_id, buffer, len, 0);