Hi all,
I think the statement "Buffer = NULL;" is redundant or we might modify the
function as below:

STATIC
VOID
EFIAPI
SafeFreePool (
  IN VOID   **Buffer
  )
{
  if (*Buffer != NULL) {
    gBS->FreePool (*Buffer);
    *Buffer = NULL;
  }
}

How do you think about this?

Regards,
-Hsien
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to