From: subhash kumar singh Date: Fri, 12 Nov 2021 06:55:14 +0000 (+0000) Subject: Merge "ASN compiled code for E2AP v1.1" X-Git-Tag: 5.5.0~2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=c9d8d2891c793e9b90ae0f4d91e32e28df0faef1;hp=b908ba4ed66d7c9076632e4bdfd1591d874779e4;p=ric-plt%2Fe2.git Merge "ASN compiled code for E2AP v1.1" --- diff --git a/RIC-E2-TERMINATION/ReadConfigFile.h b/RIC-E2-TERMINATION/ReadConfigFile.h index 6f6f094..87e511d 100644 --- a/RIC-E2-TERMINATION/ReadConfigFile.h +++ b/RIC-E2-TERMINATION/ReadConfigFile.h @@ -148,7 +148,7 @@ private: return str; } - inline static std::string& trim(basic_string str, const std::string& chars = "\t\n\v\f\r ") { + inline static std::string& trim(std::string str, const std::string& chars = "\t\n\v\f\r ") { return ltrim(rtrim(str, chars), chars); } }; diff --git a/RIC-E2-TERMINATION/sctpThread.cpp b/RIC-E2-TERMINATION/sctpThread.cpp index 1306c11..55f9083 100644 --- a/RIC-E2-TERMINATION/sctpThread.cpp +++ b/RIC-E2-TERMINATION/sctpThread.cpp @@ -836,6 +836,10 @@ void listener(sctp_params_t *params) { continue; } mdclog_write(MDCLOG_ERR, "Epoll wait failed, errno = %s", strerror(errno)); + if(events) + { + free(events); + } return; #endif } @@ -2885,7 +2889,7 @@ int receiveXappMessages(Sctp_Map_t *sctpMap, } else if (rmrMessageBuffer.rcvMessage->state != 0) { mdclog_write(MDCLOG_ERR, "Failed to send RIC_HEALTH_CHECK_RESP, on RMR state = %d ( %s)", rmrMessageBuffer.rcvMessage->state, translateRmrErrorMessages(rmrMessageBuffer.rcvMessage->state).c_str()); - } else if (loglevel >= MDCLOG_DEBUG && ++counter % 100 == 0) { + } else if (loglevel >= MDCLOG_DEBUG && (++counter % 100 == 0)) { mdclog_write(MDCLOG_DEBUG, "Got %d RIC_HEALTH_CHECK_REQ Request send : OK", counter); }