This should make Coverity's job a little easier. And also fix a little leak in the error path.
Attach a file by drag & drop or click to upload