X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fxapp%2Frmr.go;h=49a28d9f82e4e6fbf07d50a2a15954ff61a46179;hb=d1fcac7ec9fb1957caacda20d89bc5e4bd727412;hp=fc354c3db21243331795679040a585d7181d0fb4;hpb=b4c7039b6a720c2b35deb79b3018472243677c70;p=ric-plt%2Fxapp-frame.git diff --git a/pkg/xapp/rmr.go b/pkg/xapp/rmr.go index fc354c3..49a28d9 100755 --- a/pkg/xapp/rmr.go +++ b/pkg/xapp/rmr.go @@ -307,7 +307,7 @@ func (m *RMRClient) SendBuf(txBuffer *C.rmr_mbuf_t, isRts bool) int { } m.UpdateStatCounter(counterName) - m.Free(currBuffer) + defer m.Free(currBuffer) return int(currBuffer.state) }