free memory from rwops