crypto: Fix use after free.
Reported by: AppChecker Transformed to patch by: Satish Govindarajan
This commit is contained in:
parent
284afab081
commit
a0fe0c26aa
1 changed files with 1 additions and 1 deletions
|
@ -147,8 +147,8 @@ read_crypto_list (const char *prefix)
|
|||
if (! cur->modname)
|
||||
{
|
||||
grub_errno = GRUB_ERR_NONE;
|
||||
grub_free (cur);
|
||||
grub_free (cur->name);
|
||||
grub_free (cur);
|
||||
continue;
|
||||
}
|
||||
cur->next = crypto_specs;
|
||||
|
|
Loading…
Reference in a new issue