mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Assorted memory leak fixes on the error code paths.
-- These are taken from these commits:98c52ae
* card: Intialize pointer to avoid double freefc5fac8
* kbx: Avoid uninitialized readfa0771f
* g10: Avoid memory leaks25aa353
* dirmgr: Avoid double free33a2362
* agent: Fix memory leakse6132bc
* sm: Avoid memory leaks and double double-free2af7bb2
* g10: Fix memory leaks0d2c1e9
* dirmgr: clean up memory on error code paths GnuPG-bug-id: 5393 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
9d63ba2721
commit
b677e2ec98
5 changed files with 23 additions and 8 deletions
|
@ -381,7 +381,7 @@ agent_ask_new_passphrase (ctrl_t ctrl, const char *prompt,
|
|||
if (!pi2)
|
||||
{
|
||||
err = gpg_error_from_syserror ();
|
||||
xfree (pi2);
|
||||
xfree (pi);
|
||||
return err;
|
||||
}
|
||||
pi->max_length = MAX_PASSPHRASE_LEN + 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue