mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
common: Fix memory leaks.
* common/ccparray.c (ccparray_put): Free old array. * common/stringhelp.c (do_make_filename): Free 'home'. * common/t-convert.c: Fix trivial memory leaks. * common/t-iobuf.c: Likewise. * common/t-mbox-util.c: Likewise. * common/t-name-value.c: Likewise. * common/t-stringhelp.c: Likewise. * common/t-strlist.c: Likewise. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
b1e8e0d4b9
commit
c14ef10fc3
8 changed files with 32 additions and 3 deletions
|
@ -114,6 +114,7 @@ ccparray_put (ccparray_t *cpa, const char *value)
|
|||
}
|
||||
for (n=0; n < cpa->size; n++)
|
||||
newarray[n] = cpa->array[n];
|
||||
xfree (cpa->array);
|
||||
cpa->array = newarray;
|
||||
cpa->size = newsize;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue