cvs commit: src/lib/libcam camlib.c

Xin LI delphij at FreeBSD.org
Wed Jul 13 10:40:08 GMT 2005


delphij     2005-07-13 10:40:07 UTC

  FreeBSD src repository

  Modified files:
    lib/libcam           camlib.c 
  Log:
  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>
  PR:             bin/83352
  
  Revision  Changes    Path
  1.13      +7 -4      src/lib/libcam/camlib.c


More information about the cvs-all mailing list