Date: Sun, 17 Jul 2005 17:29:22 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libcam camlib.c Message-ID: <200507171729.j6HHTMNv035675@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
delphij 2005-07-17 17:29:22 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_4)
lib/libcam camlib.c
Log:
MFC revision 1.13
date: 2005/07/13 10:40:07; author: delphij; state: Exp; lines: +7 -4
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)
Submitted by: Dan Lukes <dan at obluda cz>
PR: bin/83352
Approved by: re (scottl)
Revision Changes Path
1.8.2.3 +7 -4 src/lib/libcam/camlib.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507171729.j6HHTMNv035675>
