mirror of
https://github.com/Monibuca/plugin-rtmp.git
synced 2025-10-05 15:37:11 +08:00
修复一个内存泄漏问题
This commit is contained in:
@@ -439,7 +439,7 @@ func (conn *NetConnection) readChunk() (msg *Chunk, err error) {
|
||||
}
|
||||
msgLen := int(chunkHead.MessageLength)
|
||||
if !ok {
|
||||
currentBody = (pool.GetSlice(msgLen))[:0]
|
||||
currentBody = make([]byte,0,msgLen)
|
||||
conn.incompleteRtmpBody[ChunkStreamID] = currentBody
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user