Author: cazfi
Date: Mon Dec 14 00:50:51 2015
New Revision: 30973

URL: http://svn.gna.org/viewcvs/freeciv?rev=30973&view=rev
Log:
Always free city worker request from threaded AI.

See bug #24165

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=30973&r1=30972&r2=30973&view=diff
==============================================================================
--- branches/S2_5/ai/threaded/taicity.c (original)
+++ branches/S2_5/ai/threaded/taicity.c Mon Dec 14 00:50:51 2015
@@ -212,7 +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);
   }
+
+  free(data);
 }


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

Reply via email to