mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
f7f3043653
commit
d26363e4f1
3 changed files with 21 additions and 9 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue