Hi,
Issue found by Coverity Scan.
CID 210622 (#1 of 1): Resource leak (RESOURCE_LEAK)

--- a\src\iup_config.c  Thu Oct 05 12:41:46 2017
+++ b\src\iup_config.c  Tue Jan 16 22:36:04 2018
@@ -137,7 +137,10 @@
 
     int line_len = iupLineFileReadLine(line_file);
     if (line_len == -1)
+    {
+      iupLineFileClose(line_file);
       return -2;
+    }
 
     line_buffer = iupLineFileGetBuffer(line_file);
 
Best.
Ranier.

Attachment: iup_config.patch
Description: iup_config.patch

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to