DDF-953 fixed resource leak