Commit cda21c6f authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Continue to fix CPP check

parent 0a7254ba
...@@ -173,6 +173,7 @@ void conv::convert_string_2_hex( ...@@ -173,6 +173,7 @@ void conv::convert_string_2_hex(
output_str = reinterpret_cast<char*>(datahex); output_str = reinterpret_cast<char*>(datahex);
free_wrapper((void**) &datahex); free_wrapper((void**) &datahex);
free_wrapper((void**) &data);
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
......
...@@ -27,6 +27,9 @@ ...@@ -27,6 +27,9 @@
*/ */
#include "PDUSessionResourceSetupItemSUReq.hpp" #include "PDUSessionResourceSetupItemSUReq.hpp"
extern "C" {
#include "dynamic_memory_check.h"
}
#include <iostream> #include <iostream>
using namespace std; using namespace std;
...@@ -65,7 +68,7 @@ bool PDUSessionResourceSetupItemSUReq::encode2PDUSessionResourceSetupItemSUReq( ...@@ -65,7 +68,7 @@ bool PDUSessionResourceSetupItemSUReq::encode2PDUSessionResourceSetupItemSUReq(
(Ngap_NAS_PDU_t*) calloc(1, sizeof(Ngap_NAS_PDU_t)); (Ngap_NAS_PDU_t*) calloc(1, sizeof(Ngap_NAS_PDU_t));
if (!naspdu) return false; if (!naspdu) return false;
if (!nAS_PDU->encode2octetstring(*naspdu)) { if (!nAS_PDU->encode2octetstring(*naspdu)) {
if (naspdu != nullptr) free(naspdu); free_wrapper((void**) &naspdu);
return false; return false;
} }
pduSessionResourceSetupItemSUReq->pDUSessionNAS_PDU = naspdu; pduSessionResourceSetupItemSUReq->pDUSessionNAS_PDU = naspdu;
......
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