Merge "coverity error handling" into tizen_4.0