diff options
author | Werner Koch <[email protected]> | 2018-05-02 17:44:10 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2018-05-02 18:15:10 +0000 |
commit | d26363e4f1933781c86cbe87077fbf1b9a2b64d8 (patch) | |
tree | 11201abe599f50b55ce6abee5c95f5442a1acd31 /g10/filter.h | |
parent | gpg: Fix "Too many open files" when using --multifile. (diff) | |
download | gnupg-d26363e4f1933781c86cbe87077fbf1b9a2b64d8.tar.gz gnupg-d26363e4f1933781c86cbe87077fbf1b9a2b64d8.zip |
gpg: Fix minor memory leak in the compress filter.
* g10/compress.c (push_compress_filter2): Return an error if no filter
was pushed.
(push_compress_filter): Ditto.
(handle_compressed): Free CFX if no filter was pushed.
* g10/import.c (read_block): Ditto.
--
GnuPG-bug-id: 3898, 3930
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/filter.h')
-rw-r--r-- | g10/filter.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/g10/filter.h b/g10/filter.h index 9e4b1e538..2c1e513ce 100644 --- a/g10/filter.h +++ b/g10/filter.h @@ -140,9 +140,10 @@ void unarmor_pump_release (UnarmorPump x); int unarmor_pump (UnarmorPump x, int c); /*-- compress.c --*/ -void push_compress_filter(iobuf_t out,compress_filter_context_t *zfx,int algo); -void push_compress_filter2(iobuf_t out,compress_filter_context_t *zfx, - int algo,int rel); +gpg_error_t push_compress_filter (iobuf_t out, compress_filter_context_t *zfx, + int algo); +gpg_error_t push_compress_filter2 (iobuf_t out,compress_filter_context_t *zfx, + int algo, int rel); /*-- cipher.c --*/ int cipher_filter( void *opaque, int control, |