Author: sveinung
Date: Wed May 10 10:15:08 2017
New Revision: 35476

URL: http://svn.gna.org/viewcvs/freeciv?rev=35476&view=rev
Log:
Destroy the rs section list of goods.

Destroy the section list used to load goods from the ruleset.

Reported by Valgrind.

See hrm Bug #658475

Modified:
    trunk/server/ruleset.c

Modified: trunk/server/ruleset.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/ruleset.c?rev=35476&r1=35475&r2=35476&view=diff
==============================================================================
--- trunk/server/ruleset.c      (original)
+++ trunk/server/ruleset.c      Wed May 10 10:15:08 2017
@@ -1093,6 +1093,7 @@
           }
         } goods_type_iterate_end;
       }
+      section_list_destroy(sec);
     }
   }
 
@@ -6741,6 +6742,7 @@
 
       pgood->helptext = lookup_strvec(file, sec_name, "helptext");
     } goods_type_iterate_end;
+    section_list_destroy(sec);
   }
 
   /* secfile_check_unused() is not here, but only after also settings section


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

Reply via email to