From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hannes Reinecke Subject: [PATCH 21/42] Double free in disassemble_map() Date: Tue, 8 Jan 2013 14:53:59 +0100 Message-ID: <1357653259-62650-22-git-send-email-hare@suse.de> References: <1357653259-62650-1-git-send-email-hare@suse.de> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1357653259-62650-1-git-send-email-hare@suse.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Christophe Varoqui Cc: dm-devel@redhat.com List-Id: dm-devel.ids Label 'out1' already frees 'word'; no need to do it here. Signed-off-by: Hannes Reinecke --- libmultipath/dmparser.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/libmultipath/dmparser.c b/libmultipath/dmparser.c index a45854d..5184c41 100644 --- a/libmultipath/dmparser.c +++ b/libmultipath/dmparser.c @@ -276,7 +276,6 @@ disassemble_map (vector pathvec, char * params, struct multipath * mpp) num_pg_args = atoi(word); if (merge_words(&mpp->selector, word, 1)) { - FREE(word); goto out1; } FREE(word); -- 1.7.4.2