Fixed Coverity issue 1187592. Resource leak