From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sfi-mx-4.v28.ch3.sourceforge.com ([172.29.28.124] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NRz0E-0004qN-2B for ltp-list@lists.sourceforge.net; Tue, 05 Jan 2010 02:18:34 +0000 Received: from [222.73.24.84] (helo=song.cn.fujitsu.com) by sfi-mx-4.v28.ch3.sourceforge.com with esmtp (Exim 4.69) id 1NRz0C-0004CZ-D3 for ltp-list@lists.sourceforge.net; Tue, 05 Jan 2010 02:18:34 +0000 Message-ID: <4B42A16B.4000509@cn.fujitsu.com> Date: Tue, 05 Jan 2010 10:18:19 +0800 From: Li Zefan MIME-Version: 1.0 References: <4B41E55D.2020801@st.com> In-Reply-To: Subject: Re: [LTP] mtest01: free memory allocated List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: Garrett Cooper Cc: LTP > 2. Unless the test exits the code block immediately, I'd definitely do: > > if (mem) > free (mem); > > to avoid making a bad free call. > free(NULL) is valid. ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list