Author: sveinung
Date: Wed May 10 10:17:53 2017
New Revision: 35484

URL: http://svn.gna.org/viewcvs/freeciv?rev=35484&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:
    branches/S3_0/server/ruleset.c

Modified: branches/S3_0/server/ruleset.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/server/ruleset.c?rev=35484&r1=35483&r2=35484&view=diff
==============================================================================
--- branches/S3_0/server/ruleset.c      (original)
+++ branches/S3_0/server/ruleset.c      Wed May 10 10:17:53 2017
@@ -1092,6 +1092,7 @@
           }
         } goods_type_iterate_end;
       }
+      section_list_destroy(sec);
     }
   }
 
@@ -6753,6 +6754,7 @@
 
         pgood->helptext = lookup_strvec(file, sec_name, "helptext");
       } goods_type_iterate_end;
+      section_list_destroy(sec);
     }
   }
 


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

Reply via email to