Author: cazfi
Date: Sun Jan 25 10:26:45 2015
New Revision: 27833

URL: http://svn.gna.org/viewcvs/freeciv?rev=27833&view=rev
Log:
Free the list of listening sockets on server exit

See patch #5741

Modified:
    branches/S2_6/server/sernet.c

Modified: branches/S2_6/server/sernet.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/sernet.c?rev=27833&r1=27832&r2=27833&view=diff
==============================================================================
--- branches/S2_6/server/sernet.c       (original)
+++ branches/S2_6/server/sernet.c       Sun Jan 25 10:26:45 2015
@@ -247,6 +247,7 @@
   for (i = 0; i < listen_count; i++) {
     fc_closesocket(listen_socks[i]);
   }
+  FC_FREE(listen_socks);
 
   if (srvarg.announce != ANNOUNCE_NONE) {
     fc_closesocket(socklan);


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

Reply via email to