diff --git a/rtmp/rtmp_test.go b/rtmp/rtmp_test.go index 581de7e4..4cd24a56 100644 --- a/rtmp/rtmp_test.go +++ b/rtmp/rtmp_test.go @@ -75,7 +75,7 @@ func TestMemset(t *testing.T) { size := 10 setNum := 5 testVal := byte('A') - mem := allocate(uintptr(size)) + mem := malloc(uintptr(size)) memset((*byte)(mem), int(testVal), setNum) for i := 0; i < size; i++ { if i > setNum-1 {