Code Review
/
ric-plt
/
xapp-frame.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Rmr sendmsg to free buffer after return
[ric-plt/xapp-frame.git]
/
pkg
/
xapp
/
rmr.go
diff --git
a/pkg/xapp/rmr.go
b/pkg/xapp/rmr.go
index
fc354c3
..
49a28d9
100755
(executable)
--- 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.UpdateStatCounter(counterName)
- m.Free(currBuffer)
+
defer
m.Free(currBuffer)
return int(currBuffer.state)
}
return int(currBuffer.state)
}