Deallocation of arrays passed as c_ptr

I thought the discussion was on the Fortran side only :thinking: