Author: sveinung Date: Sat May 13 23:24:28 2017 New Revision: 35564 URL: http://svn.gna.org/viewcvs/freeciv?rev=35564&view=rev Log: Auto help: free list of quoted action blockers.
This fixes a memory leak. Found with Valgrind. See hrm Bug #659405 Modified: branches/S3_0/client/helpdata.c Modified: branches/S3_0/client/helpdata.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S3_0/client/helpdata.c?rev=35564&r1=35563&r2=35564&view=diff ============================================================================== --- branches/S3_0/client/helpdata.c (original) +++ branches/S3_0/client/helpdata.c Sat May 13 23:24:28 2017 @@ -2426,6 +2426,11 @@ astr_build_or_list(&blist, blockers, i)); astr_free(&blist); + + for (; i > 0; i--) { + /* The text was copied above. */ + free((char *)(blockers[i - 1])); + } } } } action_iterate_end; _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits