[Pkg-gnupg-commit] [gnupg2] 137/160: g13: Fix memleak.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Fri Jul 15 09:36:44 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 acb27915f8646a875b6bb507ff46cd1bc330c02b
Author: Werner Koch <wk at gnupg.org>
Date: Tue Jul 12 23:04:39 2016 +0200
g13: Fix memleak.
* g13/g13tuple.c (create_tupledesc): Init refcount to 1.
--
The old code somehow assumed that calloc was used.
Signed-off-by: Werner Koch <wk at gnupg.org>
---
g13/g13tuple.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/g13/g13tuple.c b/g13/g13tuple.c
index fc6644c..ddcb467 100644
--- a/g13/g13tuple.c
+++ b/g13/g13tuple.c
@@ -114,7 +114,7 @@ create_tupledesc (tupledesc_t *r_desc, void *data, size_t datalen)
(*r_desc)->data = data;
(*r_desc)->datalen = datalen;
(*r_desc)->pos = 0;
- (*r_desc)->refcount++;
+ (*r_desc)->refcount = 1;
return 0;
}
--
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