Message ID | 1411755685-9804-2-git-send-email-janusz.dziedzic@tieto.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <hostap-bounces@lists.shmoo.com> X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) by ozlabs.org (Postfix) with ESMTP id E72EF140188 for <patchwork-incoming@ozlabs.org>; Sat, 27 Sep 2014 04:22:19 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id C344C17C1AA; Fri, 26 Sep 2014 14:22:17 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TQJ+uXscWwy6; Fri, 26 Sep 2014 14:22:17 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id B02C617C1B2; Fri, 26 Sep 2014 14:21:54 -0400 (EDT) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 2633617C1AA for <mailman-post+hostap@maxx.shmoo.com>; Fri, 26 Sep 2014 14:21:53 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6OWQos4m4DLs for <mailman-post+hostap@maxx.shmoo.com>; Fri, 26 Sep 2014 14:21:47 -0400 (EDT) Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (not verified)) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id 68ED517C167 for <hostap@lists.shmoo.com>; Fri, 26 Sep 2014 14:21:42 -0400 (EDT) Received: by mail-wi0-f176.google.com with SMTP id n3so19021wiv.9 for <hostap@lists.shmoo.com>; Fri, 26 Sep 2014 11:21:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=h7Z6g452J4UbXY1TtdVMcjeH94ut7QUC/dSL8j7edlI=; b=eZuZ24IVGUIOTGoTkVFYlduSnwVo01vK1UpwFskyPlOqXiXdyI3GS2HXPSnpTmBq0d KyUpJoeiIvwiuyaOfBeA/eWf/14RM0COy4sPB4HbjKa0bC2XxN5u0ZaIIW4gE/CIhwLn NFcNcADcT0Ss+x0V+042xSU1DtUEha26pOByY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=h7Z6g452J4UbXY1TtdVMcjeH94ut7QUC/dSL8j7edlI=; b=SKiIR2lzFgDLjRGktcF2/0dHHCVjo6XhoLHH0yfvrHj6EJUaLQg726WpxnIc194oFV MiTpgG4/GoyJ7mkOvuH4ncQDGKY1Pt07lxhhFgNWj0miuR7k03t4+t9TeWFXNUpK/Xe1 tnhOewlF3SdWVOewM1FQudVq9j7qUwBZA2rjLCeFezaYSCM8/qBwiSr6D0lJBrHX4Oqo XA28BG77uVbI1iP4SP8BFz+/pHNG5Ll/WB9y7/wHaSstDuszf6XGOXWJNvwSg34OZvsA dMmSgjy8o+5AUEesBhbaRsX2OddxscvGoecTbNOk1ZEi11LXttyXUvy+M1DHSKfFMpyp KUpw== X-Gm-Message-State: ALoCoQmXTWccn8hL6hIipNDi3VU/GwyyUyRKwF5XI3RBjDthDm7YUUQX57N0L34d9sZIAUeJoLQaG4Tcy1bvBszgKvnf79k8GcjEpWHrMbiFfmPT9scqGhUyA6uTXsHfkSMI0Fbf9BD+Zf97oW1RT6y4kOwWQl8QiaHWrF0eJKFXsJL7MbEkVxw= X-Received: by 10.194.57.67 with SMTP id g3mr25488461wjq.60.1411755701384; Fri, 26 Sep 2014 11:21:41 -0700 (PDT) Received: from localhost.localdomain (host-62-141-193-76.swidnica.mm.pl. [62.141.193.76]) by mx.google.com with ESMTPSA id s1sm3072748wiw.6.2014.09.26.11.21.40 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Sep 2014 11:21:40 -0700 (PDT) From: Janusz Dziedzic <janusz.dziedzic@tieto.com> To: hostap@lists.shmoo.com Subject: [PATCH 2/2] hostapd: free nlmsg when radar detection fail Date: Fri, 26 Sep 2014 20:21:25 +0200 Message-Id: <1411755685-9804-2-git-send-email-janusz.dziedzic@tieto.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1411755685-9804-1-git-send-email-janusz.dziedzic@tieto.com> References: <1411755685-9804-1-git-send-email-janusz.dziedzic@tieto.com> X-DomainID: tieto.com Cc: j@w1.fi X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.11 Precedence: list List-Id: HostAP Project <hostap.lists.shmoo.com> List-Unsubscribe: <http://lists.shmoo.com/mailman/options/hostap>, <mailto:hostap-request@lists.shmoo.com?subject=unsubscribe> List-Archive: <http://lists.shmoo.com/pipermail/hostap> List-Post: <mailto:hostap@lists.shmoo.com> List-Help: <mailto:hostap-request@lists.shmoo.com?subject=help> List-Subscribe: <http://lists.shmoo.com/mailman/listinfo/hostap>, <mailto:hostap-request@lists.shmoo.com?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com |
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index de37927..dc01cc0 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -11494,6 +11494,7 @@ static int nl80211_start_radar_detection(void *priv, wpa_printf(MSG_DEBUG, "nl80211: Failed to start radar detection: " "%d (%s)", ret, strerror(-ret)); nla_put_failure: + nlmsg_free(msg); return -1; }
Remove possible memory leak when start radar detection will fail. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com> --- src/drivers/driver_nl80211.c | 1 + 1 file changed, 1 insertion(+)