[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r12530 - Extractor/src/common
From: |
gnunet |
Subject: |
[GNUnet-SVN] r12530 - Extractor/src/common |
Date: |
Sat, 14 Aug 2010 21:55:45 +0200 |
Author: grothoff
Date: 2010-08-14 21:55:45 +0200 (Sat, 14 Aug 2010)
New Revision: 12530
Modified:
Extractor/src/common/unzip.c
Log:
fix leak
Modified: Extractor/src/common/unzip.c
===================================================================
--- Extractor/src/common/unzip.c 2010-08-14 19:51:53 UTC (rev 12529)
+++ Extractor/src/common/unzip.c 2010-08-14 19:55:45 UTC (rev 12530)
@@ -1170,9 +1170,15 @@
err=inflateInit2(&pfile_in_zip_read_info->stream, -MAX_WBITS);
if (err == Z_OK)
- pfile_in_zip_read_info->stream_initialised=1;
+ {
+ pfile_in_zip_read_info->stream_initialised=1;
+ }
else
- return err;
+ {
+ free (pfile_in_zip_read_info->read_buffer);
+ free (pfile_in_zip_read_info);
+ return err;
+ }
/* windowBits is passed < 0 to tell that there is no zlib header.
* Note that in this case inflate *requires* an extra "dummy" byte
* after the compressed stream in order to complete decompression and
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r12530 - Extractor/src/common,
gnunet <=