b73cee7 emu: Make grub_free(NULL) safe

1 file Authored by pjones 3 years ago, Committed by Daniel Kiper 3 years ago,
    emu: Make grub_free(NULL) safe
    
    The grub_free() implementation in grub-core/kern/mm.c safely handles
    NULL pointers, and code at many places depends on this. We don't know
    that the same is true on all host OSes, so we need to handle the same
    behavior in grub-emu's implementation.
    
    Signed-off-by: Peter Jones <pjones@redhat.com>
    Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
    Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
    
        
file modified
+2 -1