X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2FE2AP-c%2Fe2ap_indication.cc;h=d0b262e215b8dd3a2a9b2eda5d6d5cd6fdba6bc8;hb=8a198a45af798bc7c9525a2663d397377d01ab01;hp=5dd17c23a9e90161d10ad8a7cc8b6d1d2cd5c4dc;hpb=6f5a7b69bb045ed82506e14cef9b0cdc6554a613;p=ric-app%2Fadmin.git diff --git a/src/E2AP-c/e2ap_indication.cc b/src/E2AP-c/e2ap_indication.cc index 5dd17c2..d0b262e 100644 --- a/src/E2AP-c/e2ap_indication.cc +++ b/src/E2AP-c/e2ap_indication.cc @@ -25,11 +25,11 @@ #include -// Set up the initiating message and also allocate protocolIEs in container -// Note : this bypasses requirement to use ASN_SEQUENCE_ADD. We can directly -// assign pointers to the array in ProtocolIE. However, this also leaves us on the -// hook to manually clear the memory - +// Set up memory allocations for each IE for encoding +// We are responsible for memory management for each IE for encoding +// Hence destructor should clear out memory +// When decoding, we rely on asn1c macro (ASN_STRUCT_FREE to be called +// for releasing memory by external calling function) ric_indication::ric_indication(void){ e2ap_pdu_obj = 0;