Fix resource leak CID 18101