Author: cazfi
Date: Fri Apr  8 15:09:19 2016
New Revision: 32323

URL: http://svn.gna.org/viewcvs/freeciv?rev=32323&view=rev
Log:
Fixed fz_FILE descriptor leak when inlining file as secfile string.

See bug #24556

Modified:
    branches/S2_6/utility/inputfile.c

Modified: branches/S2_6/utility/inputfile.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/utility/inputfile.c?rev=32323&r1=32322&r2=32323&view=diff
==============================================================================
--- branches/S2_6/utility/inputfile.c   (original)
+++ branches/S2_6/utility/inputfile.c   Fri Apr  8 15:09:19 2016
@@ -892,6 +892,8 @@
       }
     }
 
+    fz_fclose(fp);
+
     inf->cur_line_pos = c + 1 - astr_str(&inf->cur_line);
 
     return astr_str(&inf->token);


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to