Remove malloc in something