mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-30 16:17:02 +01:00
g10: Fix memory leak.
* g10/compress.c (release_context): Free buffers. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
84f262102b
commit
5869f518cb
@ -295,6 +295,10 @@ compress_filter( void *opaque, int control,
|
||||
static void
|
||||
release_context (compress_filter_context_t *ctx)
|
||||
{
|
||||
xfree(ctx->inbuf);
|
||||
ctx->inbuf = NULL;
|
||||
xfree(ctx->outbuf);
|
||||
ctx->outbuf = NULL;
|
||||
xfree (ctx);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user