From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 17 Feb 2011 16:05:33 -0300 From: Johan Hedberg To: David Herrmann Cc: linux-bluetooth@vger.kernel.org Subject: Re: PATCH [2/2] batostr(): Replace batostr() where possible with ba2str to avoid memleaks Message-ID: <20110217190533.GB22042@jh-x301> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi David, On Wed, Feb 16, 2011, David Herrmann wrote: > batostr() returns a dynamically allocated string which must be freed > later, although, the function looks like the standard berkeley socket > functions that work on static buffers. Two functions inside bluez > incorrectly use batostr() and do not free the returned pointer. I > replaced the occurrence of batostr() with a ba2str(). This patch looks good, but you've managed to format it in such away that I can't feed it directly to git am. Could you try resending with git send-email? Johan