[Pkg-gnupg-commit] [gnupg2] 79/160: g10: Fix memory leak.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Fri Jul 15 09:36:38 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch upstream
in repository gnupg2.
commit 5869f518cbd8b41b4c9880fc593216b9efeea430
Author: Justus Winter <justus at g10code.com>
Date: Thu Jun 30 15:26:06 2016 +0200
g10: Fix memory leak.
* g10/compress.c (release_context): Free buffers.
Signed-off-by: Justus Winter <justus at g10code.com>
---
g10/compress.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/g10/compress.c b/g10/compress.c
index bdddef1..c34beec 100644
--- a/g10/compress.c
+++ b/g10/compress.c
@@ -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);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list