Fixed resource leak: file