Author: cazfi
Date: Tue Feb  3 02:56:55 2015
New Revision: 27936

URL: http://svn.gna.org/viewcvs/freeciv?rev=27936&view=rev
Log:
Fixed leak of worker task data from Threaded AI 

See bug #23226

Modified:
    branches/S2_5/ai/threaded/taicity.c

Modified: branches/S2_5/ai/threaded/taicity.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/ai/threaded/taicity.c?rev=27936&r1=27935&r2=27936&view=diff
==============================================================================
--- branches/S2_5/ai/threaded/taicity.c (original)
+++ branches/S2_5/ai/threaded/taicity.c Tue Feb  3 02:56:55 2015
@@ -212,5 +212,7 @@
     pcity->server.task_req.ptile = data->task.ptile;
     pcity->server.task_req.act   = data->task.act;
     pcity->server.task_req.tgt   = data->task.tgt;
+
+    free(data);
   }
 }


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

Reply via email to