Fix memory leak

471: If this executed "if (!file.file) ", then
473: dynamically allocated variable "data" is leaked.