From owner-cvs-src@FreeBSD.ORG Wed Jul 13 10:40:08 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03DFB16A41C; Wed, 13 Jul 2005 10:40:08 +0000 (GMT) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1A7343D45; Wed, 13 Jul 2005 10:40:07 +0000 (GMT) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j6DAe7qe049972; Wed, 13 Jul 2005 10:40:07 GMT (envelope-from delphij@repoman.freebsd.org) Received: (from delphij@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j6DAe7rs049971; Wed, 13 Jul 2005 10:40:07 GMT (envelope-from delphij) Message-Id: <200507131040.j6DAe7rs049971@repoman.freebsd.org> From: Xin LI Date: Wed, 13 Jul 2005 10:40:07 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libcam camlib.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jul 2005 10:40:08 -0000 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 PR: bin/83352 Revision Changes Path 1.13 +7 -4 src/lib/libcam/camlib.c