*correct* malloc and free in rpeanut