foreign import xFree once and for all