Closing coverity defect