cvs commit: src/lib/libc/stdlib malloc.c

Jason Evans jasone at FreeBSD.org
Wed Jan 18 18:11:06 PST 2006


jasone      2006-01-19 02:11:05 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/stdlib      malloc.c 
  Log:
  Return NULL if there is an OOM error during initialization, rather than
  allowing the error to be fatal.
  
  Move a label in order to make sure to properly handle errors in malloc(0).
  
  Reported by:    Alastair D'Silva, Saneto Takanori
  
  Revision  Changes    Path
  1.96      +50 -35    src/lib/libc/stdlib/malloc.c


More information about the cvs-src mailing list