[BUGFIX] In ByteBuffer: use free instead of delete