[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Backport simpler fix to possible double call to inflateEnd
Update of /home/or/cvsroot/tor/src/common
In directory moria:/tmp/cvs-serv28180/src/common
Modified Files:
Tag: tor-0_1_0-patches
torgzip.c
Log Message:
Backport simpler fix to possible double call to inflateEnd
Index: torgzip.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/torgzip.c,v
retrieving revision 1.16
retrieving revision 1.16.2.1
diff -u -d -r1.16 -r1.16.2.1
--- torgzip.c 7 May 2005 05:55:05 -0000 1.16
+++ torgzip.c 13 Jul 2005 05:30:38 -0000 1.16.2.1
@@ -209,6 +209,7 @@
*out_len = stream->total_out;
if (inflateEnd(stream)!=Z_OK) {
log_fn(LOG_WARN, "Error freeing gzip structures");
+ tor_free(stream);
goto err;
}
tor_free(stream);