Fixed Coverity issue 1187589. Resource Leak