change same example to memory management
fix same test for new memory management
avio.go change to new memory management
change cdoec.go to new memory management.