From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 8 Nov 2011 18:50:42 +0100 From: Antonio Quartulli Message-ID: <20111108175041.GA8405@ritirata.org> References: <1320262005-15120-1-git-send-email-siwu@hrz.tu-chemnitz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1320262005-15120-1-git-send-email-siwu@hrz.tu-chemnitz.de> Subject: Re: [B.A.T.M.A.N.] [PATCHv2] batman-adv: check return value for hash_add() Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking Cc: Simon Wunderlich On Wed, Nov 02, 2011 at 08:26:45 +0100, Simon Wunderlich wrote: > if hash_add() fails, we should remove the structure to avoid memory > leaks. > > Signed-off-by: Simon Wunderlich Acked-by Antonio Quartulli -- Antonio Quartulli ..each of us alone is worth nothing.. Ernesto "Che" Guevara