From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from kirsty.vergenet.net ([202.4.237.240]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UKpgE-0007e0-HX for kexec@lists.infradead.org; Wed, 27 Mar 2013 12:42:15 +0000 Date: Wed, 27 Mar 2013 21:42:12 +0900 From: Simon Horman Subject: Re: [PATCH 12/13] kexec: x86_64: elf: fix memory leak caused by get_command_line Message-ID: <20130327124211.GY17248@verge.net.au> References: <51506758.4070902@gmail.com> <51506A89.2010501@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <51506A89.2010501@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Zhang Yanfei Cc: "kexec@lists.infradead.org" On Mon, Mar 25, 2013 at 11:17:29PM +0800, Zhang Yanfei wrote: > From: Zhang Yanfei > > Since get_command_line returns dynamically allocated memory, it is > easy for the caller to forget freeing the memory. Here fixes a > memory leak caused by this function. > > Signed-off-by: Zhang Yanfei > --- > kexec/arch/x86_64/kexec-elf-x86_64.c | 7 +++++-- > 1 files changed, 5 insertions(+), 2 deletions(-) Thanks, applied. _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec