From FreeBSD:
authorSimon Schubert <corecode@dragonflybsd.org>
Thu, 14 Jul 2005 09:13:27 +0000 (09:13 +0000)
committerSimon Schubert <corecode@dragonflybsd.org>
Thu, 14 Jul 2005 09:13:27 +0000 (09:13 +0000)
commitf666109d5498179b9940525d81eba13d57b1a7d8
tree4a563cc3c3ab34055a8dffd2ebbfca5ea9192dac
parentc5c5e6fc7931e9c9e170318cc9dc6981bed3e471
From FreeBSD:
  Better memory handling:

   - It is acceptable to call free(3) when the given pointer itself
     is NULL, so we do not need to determine NULL before passing
     a pointer to free(3)
   - Handle failure of malloc(3)

  MT6/5 Candidate

  Submitted by:   Dan Lukes <dan at obluda cz>

Submitted-by: Xin LI <delphij delphij net>
lib/libcam/camlib.c