cvs commit: src/lib/libcam camlib.c

Simon Schubert corecode at crater.dragonflybsd.org
Thu Jul 14 02:13:43 PDT 2005


corecode    2005/07/14 02:13:27 PDT

DragonFly src repository

  Modified files:
    lib/libcam           camlib.c 
  Log:
  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>
  
  Revision  Changes    Path
  1.3       +8 -5      src/lib/libcam/camlib.c


http://www.dragonflybsd.org/cvsweb/src/lib/libcam/camlib.c.diff?r1=1.2&r2=1.3&f=u





More information about the Commits mailing list