From cc046af503036cc148367014dec8cca2e558739e Mon Sep 17 00:00:00 2001 From: Harry Jeffery <henry.jeffery@stfc.ac.uk> Date: Mon, 9 Feb 2015 14:54:35 +0000 Subject: [PATCH] Refs #11014 Resolve Coverity 1075562 --- Code/Mantid/MantidPlot/src/origin/OPJFile.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Code/Mantid/MantidPlot/src/origin/OPJFile.cpp b/Code/Mantid/MantidPlot/src/origin/OPJFile.cpp index 9dd3637e08c..e4dbfc5c34f 100644 --- a/Code/Mantid/MantidPlot/src/origin/OPJFile.cpp +++ b/Code/Mantid/MantidPlot/src/origin/OPJFile.cpp @@ -270,6 +270,7 @@ int OPJFile::ParseFormatOld() { if((debug=fopen("opjfile.log","w")) == NULL ) { printf("Could not open log file!\n"); + fclose(f); //f is still open, so close it before returning return -1; } -- GitLab