grub-install: Fix memory leak.
Found by: Coverity scan.
This commit is contained in:
parent
c3f5230597
commit
3c6384832b
1 changed files with 4 additions and 1 deletions
|
@ -622,7 +622,10 @@ device_map_check_duplicates (const char *dev_map)
|
|||
|
||||
fp = grub_util_fopen (dev_map, "r");
|
||||
if (! fp)
|
||||
return;
|
||||
{
|
||||
free (d);
|
||||
return;
|
||||
}
|
||||
|
||||
while (fgets (buf, sizeof (buf), fp))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue