X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=RIC-E2-TERMINATION%2FsctpThread.cpp;h=d529c0ccb621df0d6dba608fe673136e49570e2f;hb=9dff4f0fd578ec0634cb419f750a53851e92d78b;hp=21287d585dede2fba38cd839cc7ddbfa0f4b9246;hpb=1fecb051286a268a55a557731845ee2c68aebf54;p=ric-plt%2Fe2.git diff --git a/RIC-E2-TERMINATION/sctpThread.cpp b/RIC-E2-TERMINATION/sctpThread.cpp index 21287d5..d529c0c 100644 --- a/RIC-E2-TERMINATION/sctpThread.cpp +++ b/RIC-E2-TERMINATION/sctpThread.cpp @@ -1105,6 +1105,7 @@ int receiveDataFromSctp(struct epoll_event *events, if (rval.code != RC_OK) { mdclog_write(MDCLOG_ERR, "Error %d Decoding (unpack) E2AP PDU from RAN : %s", rval.code, message.peerInfo->enodbName); + //todo may need reset to pdu break; } @@ -1150,16 +1151,16 @@ int receiveDataFromSctp(struct epoll_event *events, //TODO need to test ASN_STRUCT_RESET(asn_DEF_E2AP_PDU, pdu); to get better performance ASN_STRUCT_RESET(asn_DEF_E2AP_PDU, pdu); //ASN_STRUCT_FREE(asn_DEF_E2AP_PDU, pdu); - pdu = nullptr; + //pdu = nullptr; } //clock_gettime(CLOCK_MONOTONIC, &start); } // in case of break to avoid memory leak - if (pdu != nullptr) { - //ASN_STRUCT_FREE(asn_DEF_E2AP_PDU, pdu); - ASN_STRUCT_RESET(asn_DEF_E2AP_PDU, pdu); - pdu = nullptr; - } +// if (pdu != nullptr) { +// //ASN_STRUCT_FREE(asn_DEF_E2AP_PDU, pdu); +// ASN_STRUCT_RESET(asn_DEF_E2AP_PDU, pdu); +// //pdu = nullptr; +// } if (done) { if (loglevel >= MDCLOG_INFO) {