Issue #17934:delete aropenalloc after applying to invoice