rewrite NX_OBJ_FREE