mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-12 22:11:29 +02: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
|
static void
|
||||||
release_context (compress_filter_context_t *ctx)
|
release_context (compress_filter_context_t *ctx)
|
||||||
{
|
{
|
||||||
|
xfree(ctx->inbuf);
|
||||||
|
ctx->inbuf = NULL;
|
||||||
|
xfree(ctx->outbuf);
|
||||||
|
ctx->outbuf = NULL;
|
||||||
xfree (ctx);
|
xfree (ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user