mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
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@gnupg.org>
This commit is contained in:
parent
38eb5f81d2
commit
acb27915f8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user