• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Is it guaranteed safe to pass NULL to free()?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is it guaranteed safe to pass NULL to free()?


  • Subject: Is it guaranteed safe to pass NULL to free()?
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 8 Oct 2008 20:13:27 -0400
  • Organization: Rogue Research

Hi all,

My understanding is that one can safely pass NULL to free().  I've seen
this stated in man pages on various unices.  However, I notice that Mac
OS X 10.5's man page for free makes no comment about passing NULL.  Is
it guaranteed safe by posix or the C standard, or not?

Cheers,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Is it guaranteed safe to pass NULL to free()?
      • From: Terry Lambert <email@hidden>
    • Re: Is it guaranteed safe to pass NULL to free()?
      • From: Patrick Rutkowski <email@hidden>
    • Re: Is it guaranteed safe to pass NULL to free()?
      • From: Brian Mastenbrook <email@hidden>
  • Prev by Date: Re: daemon-child dies on user lougout
  • Next by Date: Re: Is it guaranteed safe to pass NULL to free()?
  • Previous by thread: Re: impossible constraint in asm
  • Next by thread: Re: Is it guaranteed safe to pass NULL to free()?
  • Index(es):
    • Date
    • Thread