Author: cazfi
Date: Sat Jan 24 11:24:11 2015
New Revision: 27792

URL: http://svn.gna.org/viewcvs/freeciv?rev=27792&view=rev
Log:
Free fz_File structure in case of xz-compressed files when closing the file.

See bug #23208

Modified:
    trunk/utility/ioz.c

Modified: trunk/utility/ioz.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/utility/ioz.c?rev=27792&r1=27791&r2=27792&view=diff
==============================================================================
--- trunk/utility/ioz.c (original)
+++ trunk/utility/ioz.c Sat Jan 24 11:24:11 2015
@@ -472,6 +472,7 @@
     free(fp->u.xz.in_buf);
     free(fp->u.xz.out_buf);
     fclose(fp->u.xz.plain);
+    free(fp);
     return error;
 #endif /* HAVE_LIBLZMA */
 #ifdef HAVE_LIBBZ2


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

Reply via email to