* g10/getkey.c (parse_auto_key_locate): Fix freeing of OPTIONS.
--
It was probably too late for me to hack.
Signed-off-by: Werner Koch <wk@gnupg.org>
parse_auto_key_locate (const char *options_arg)
{
char *tok;
- char *options = xstrdup (options_arg);
+ char *options, *options_buf;
+ options = options_buf = xstrdup (options_arg);
while ((tok = optsep (&options)))
{
struct akl *akl, *check, *last = NULL;
else
{
free_akl (akl);
- xfree (options);
+ xfree (options_buf);
return 0;
}
}
}
- xfree (options);
+ xfree (options_buf);
return 1;
}