mirror of
https://github.com/Monibuca/engine.git
synced 2025-10-09 10:30:22 +08:00
fix: g711 override memory
fix: PacketizeRTP memory leak fix: avoid read files beyond the log path
This commit is contained in:
@@ -16,15 +16,3 @@ func TestBuffer(t *testing.T) {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func TestMallocSlice(t *testing.T) {
|
||||
t.Run(t.Name(), func(t *testing.T) {
|
||||
var a [][]byte = [][]byte{}
|
||||
b := MallocSlice(&a)
|
||||
if *b != nil {
|
||||
t.Fail()
|
||||
} else if *b = []byte{1}; a[0][0] != 1 {
|
||||
t.Fail()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user