Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 14 Mar 2003 03:57:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 14 Mar 2003 03:57:59 -0500 Received: from 12-231-249-244.client.attbi.com ([12.231.249.244]:53004 "HELO kroah.com") by vger.kernel.org with SMTP id ; Fri, 14 Mar 2003 03:57:57 -0500 Date: Fri, 14 Mar 2003 00:57:32 -0800 From: Greg KH To: =?iso-8859-1?Q?Bj=F6rn?= Fahller Cc: Oleg Drokin , alan@redhat.com, linux-kernel@vger.kernel.org, zubarev@us.ibm.com Subject: Re: [2.4] Multiple memleaks in IBM Hot Plug Controller Driver Message-ID: <20030314085731.GE3084@kroah.com> References: <20030313204556.GA3475@linuxhacker.ru> <200303140934.44245.bjorn@netinsight.se> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200303140934.44245.bjorn@netinsight.se> User-Agent: Mutt/1.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 736 Lines: 18 On Fri, Mar 14, 2003 at 09:34:44AM +0100, Bj?rn Fahller wrote: > On Thursday 13 March 2003 21.45, Oleg Drokin wrote: > > Below, why allocating 2 bytes on heap (str1,) only to non-conditionally free > it a few lines further down? Why not keep the two bytes on stack instead? It > also seems like a bad idea to strncopy/strcat 1 byte long strings. Like I previously said, this whole function is a bad dream. Look at what is now in 2.5, all of this nonsense is now gone. thanks, greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/