[PAXSB-75] avoid resource leak