From patchwork Thu Sep 10 12:31:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 7153731 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 900F7BEEC1 for ; Thu, 10 Sep 2015 12:32:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D962A2088C for ; Thu, 10 Sep 2015 12:32:16 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id A039E2090E for ; Thu, 10 Sep 2015 12:32:14 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id C8EDC265967; Thu, 10 Sep 2015 14:32:12 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 10A21265804; Thu, 10 Sep 2015 14:32:05 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id A9A2A265867; Thu, 10 Sep 2015 14:32:03 +0200 (CEST) Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by alsa0.perex.cz (Postfix) with ESMTP id 440AD2614FD for ; Thu, 10 Sep 2015 14:31:56 +0200 (CEST) Received: by pacfv12 with SMTP id fv12so43070218pac.2 for ; Thu, 10 Sep 2015 05:31:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=99b3wAvgaR0v5bbr540W0nQwdvO+cQualsh8h2XaaGk=; b=mufOdeHlW7onkT7KJXJAy7UpQZWL4jyeY99YIkHsmbcBN5j6x4DvIMyB3MewJ7wlWe B9ZkQUqhbQH9gbPi8edYOJYSrkpBv6zDd1DnQJDMc2EyToE2roP/cRtY8QZYwnq3ytAr 6NcEeg9N3QmiTZkJ0J1PWAkWYEU09NPH/E8jY8oNUkNbquP3KY+Z5qyJe0kf0MvccTQY VOP8RxH123+Xa9UzR00SsJn5n6ZhADyLWpAOSvAcfSEyMimay5P91omyq/c9tHSo7foZ jp7BDXLJJifgkn3dgq5bJxXwZ3LVWiCYzfJORVIV/4y2QEzLrrILdvI9gZATcKgOIGuV JDeg== X-Received: by 10.66.221.193 with SMTP id qg1mr75041633pac.103.1441888314731; Thu, 10 Sep 2015 05:31:54 -0700 (PDT) Received: from localhost.localdomain ([49.206.249.64]) by smtp.gmail.com with ESMTPSA id fd5sm11859741pbb.53.2015.09.10.05.31.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 Sep 2015 05:31:53 -0700 (PDT) From: Sudip Mukherjee To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Date: Thu, 10 Sep 2015 18:01:44 +0530 Message-Id: <1441888305-19957-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.9.1 Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Sudip Mukherjee Subject: [alsa-devel] [PATCH 1/2] ASoC: dapm: fix memory leak X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Incase of an unknown event we were directly returning but we missed freeing params. Signed-off-by: Sudip Mukherjee --- sound/soc/soc-dapm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index f4bf21a..ff8bda4 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -3501,7 +3501,7 @@ static int snd_soc_dai_link_event(struct snd_soc_dapm_widget *w, default: WARN(1, "Unknown event %d\n", event); - return -EINVAL; + ret = -EINVAL; } out: