mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
g10: Avoid memory leaks
* g10/call-agent.c (card_keyinfo_cb): free keyinfo. Restructure to avoid backward gotos. * g10/keyedit.c (menu_set_keyserver_url): properly enclose the block * g10/keygen.c (gen_card_key): free pk and pkt -- Signed-off-by: Jakub Jelen <jjelen@redhat.com> GnuPG-bug-id: 5393 Additional changes: - Restructure to avoid backward gotos. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
25aa353bf8
commit
fa0771f609
3 changed files with 30 additions and 18 deletions
|
@ -5382,14 +5382,16 @@ menu_set_keyserver_url (ctrl_t ctrl, const char *url, kbnode_t pub_keyblock)
|
|||
uri
|
||||
? _("Are you sure you want to replace it? (y/N) ")
|
||||
: _("Are you sure you want to delete it? (y/N) ")))
|
||||
xfree (user);
|
||||
continue;
|
||||
{
|
||||
xfree (user);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else if (uri == NULL)
|
||||
{
|
||||
/* There is no current keyserver URL, so there
|
||||
is no point in trying to un-set it. */
|
||||
xfree (user);
|
||||
xfree (user);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue