* grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
This commit is contained in:
parent
bdfe9eeb2c
commit
bb41695449
2 changed files with 5 additions and 8 deletions
|
@ -1,3 +1,7 @@
|
|||
2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
|
||||
|
||||
2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
|
||||
|
|
|
@ -729,7 +729,6 @@ int
|
|||
grub_dl_unload (grub_dl_t mod)
|
||||
{
|
||||
grub_dl_dep_t dep, depn;
|
||||
grub_dl_segment_t seg, segn;
|
||||
|
||||
if (mod->ref_count > 0)
|
||||
return 0;
|
||||
|
@ -749,13 +748,7 @@ grub_dl_unload (grub_dl_t mod)
|
|||
grub_free (dep);
|
||||
}
|
||||
|
||||
for (seg = mod->segment; seg; seg = segn)
|
||||
{
|
||||
segn = seg->next;
|
||||
grub_free (seg->addr);
|
||||
grub_free (seg);
|
||||
}
|
||||
|
||||
grub_free (mod->base);
|
||||
grub_free (mod->name);
|
||||
#ifdef GRUB_MODULES_MACHINE_READONLY
|
||||
grub_free (mod->symtab);
|
||||
|
|
Loading…
Reference in a new issue