Fix CID 1116694 Resource leak
Fix CID 1116497 Resource leak