X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=control%2FrcE2SmRc.go;h=f72707c77d747e0fb3d21d2507065d07e1e9b63a;hb=a442087473b475dea8e473efb7ed1f87b3f56b50;hp=e2a8498ef35cf9b654d292c7b22a23263f5ba25b;hpb=00b2fece39c26dcfac97e3bcfd685d20c16adc49;p=ric-app%2Frc.git diff --git a/control/rcE2SmRc.go b/control/rcE2SmRc.go index e2a8498..f72707c 100644 --- a/control/rcE2SmRc.go +++ b/control/rcE2SmRc.go @@ -117,10 +117,10 @@ func (c *E2sm) GetControlOutcome(buffer []byte) (controlOutcome *ControlOutcomeM //ml.MavLog(ml.INFO, lTransId, "Decode Control Outcome: ") xapp.Logger.Info("Decode Control Outcome: ") decodedMsg := C.e2sm_decode_ric_call_process_outcome(cptr, C.size_t(len(buffer))) + defer C.e2sm_free_ric_call_process_outcome(decodedMsg) if decodedMsg == nil { return controlOutcome, errors.New("e2sm wrapper is unable to get ControlOutcome due to wrong or invalid input") } - defer C.e2sm_free_ric_call_process_outcome(decodedMsg) //ml.MavLog(ml.INFO, lTransId, "Decoded Control Outcome: ") controlOutcome.ControlOutcomeType = int32(decodedMsg.ric_controlOutcome_formats.present) if controlOutcome.ControlOutcomeType == 1 {