From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1UHYxQ-0001OS-OR for ltp-list@lists.sourceforge.net; Mon, 18 Mar 2013 12:14:28 +0000 Date: Mon, 18 Mar 2013 13:15:09 +0100 From: chrubis@suse.cz Message-ID: <20130318121509.GA3423@rei> References: <1363604093-6960-1-git-send-email-markos.chandras@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1363604093-6960-1-git-send-email-markos.chandras@gmail.com> Subject: Re: [LTP] [PATCH v4] syscalls/getdents: Add parameter to test getdents64 syscall 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: Markos Chandras Cc: ltp-list@lists.sourceforge.net Hi! > + if (longsyscall) > + free(dirp64); > + else > + free(dirp); > + > cleanup(); > > tst_exit(); You don't need to bother to free the buffers when the next thing the test does is exit, the whole heap along with malloc data structures will be freed (unmapped) by the kernel anyway. -- Cyril Hrubis chrubis@suse.cz ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list