From patchwork Tue Sep 23 04:18:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Renu Tyagi X-Patchwork-Id: 4952831 X-Patchwork-Delegate: tiwai@suse.de 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3D88DBEEA5 for ; Tue, 23 Sep 2014 04:19:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7D89520160 for ; Tue, 23 Sep 2014 04:19:04 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 121232015E for ; Tue, 23 Sep 2014 04:19:03 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 14C222625CF; Tue, 23 Sep 2014 06:19:02 +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=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 12716261ACB; Tue, 23 Sep 2014 06:18:51 +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 943E2261AE4; Tue, 23 Sep 2014 06:18:49 +0200 (CEST) Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by alsa0.perex.cz (Postfix) with ESMTP id 7546F261AA5 for ; Tue, 23 Sep 2014 06:18:41 +0200 (CEST) Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NCC00F026MSMGD0@mailout3.samsung.com> for alsa-devel@alsa-project.org; Tue, 23 Sep 2014 13:18:29 +0900 (KST) Received: from epcpsbgx3.samsung.com ( [172.20.52.123]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 6D.F4.18484.394F0245; Tue, 23 Sep 2014 13:18:27 +0900 (KST) X-AuditID: cbfee68f-f791c6d000004834-d7-5420f493f9ba Received: from epmailer01 ( [203.254.219.141]) by epcpsbgx3.samsung.com (EPCPMTA) with SMTP id 3A.66.14702.984F0245; Tue, 23 Sep 2014 13:18:17 +0900 (KST) Date: Tue, 23 Sep 2014 04:18:17 +0000 (GMT) From: Renu Tyagi To: alsa-devel@alsa-project.org MIME-version: 1.0 X-MTR: 20140923041614532@renu.tyagi Msgkey: 20140923041614532@renu.tyagi X-EPLocale: en_US.windows-1252 X-Priority: 3 X-EPWebmail-Msg-Type: personal X-EPWebmail-Reply-Demand: 0 X-EPApproval-Locale: X-EPHeader: ML X-MLAttribute: X-RootMTR: 20140923041614532@renu.tyagi X-ParentMTR: X-ArchiveUser: X-CPGSPASS: N X-ConfirmMail: N,general MIME-version: 1.0 Message-id: <15498010.61181411445897166.JavaMail.weblogic@epv6ml10> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCIsWRmVeSWpSXmKPExsWyRsSkWnfyF4UQg4mtVhZXLh5icmD02PC5 iS2AMYrLJiU1J7MstUjfLoErY2+LcMEfropDB56wNjBe4epi5OQQElCVWHBtGSOILSFgIvHz yGE2CFtM4sK99UA2F1DNUkaJq89fssIULZ65jhEiMYdRYvPq9SwgCRagSSd/PgQrYhPQktjT 2cMEYgsLmEv8e3kbLC4ioCLR8Xo52DZmoA2/z9xl72LkABqkILH7nhlImFdAUOLkzCcsELuU JRa8vsECUsIL1PrhuQREWE5iydTLTBA2r8SM9qcsMPFpX9cwQ9jSEudnbWCE+WXx98dQcX6J Y7d3QPUK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ni266JjBMYZWchSc1C0j4LSTuy mgWMLKsYRVMLkguKk9IrjPWKE3OLS/PS9ZLzczcxgpPQs8U7GP+ftz7EKMDBqMTD67FGIUSI NbGsuDL3EKMEB7OSCG/JRKAQb0piZVVqUX58UWlOavEhRlNgnE1klhJNzgcmyLySeENjE3NT Y1MLA0NzczMlcd74W0lBQgLpiSWp2ampBalFMH1MHJxSDYyyC6dfUHqfZiuzQ+6ZgO/uf1sk WmZbfve52Z2YYslTNpUv4PWrr7a9qbvl/L9xTtO1K1Rre5K8vs3l1uHXrwNP6203ad6Uz35y Gu86w+VTbj1627NO9kxJ8mH3b0VSBRe+RP+bEDBlTfKVeNtT1UJTNRSaD3x+aH2DZ8PdxIsf Mqotby9waOdTYinOSDTUYi4qTgQAo5rJllgDAAA= DLP-Filter: Pass X-CFilter-Loop: Reflected Cc: tiwai@suse.de Subject: [alsa-devel] [PATCH v2 02/11] pcm_file : fixed missing free X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: renu.tyagi@samsung.com List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: renu tyagi --- src/pcm/pcm_file.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) -- 1.7.1 diff --git a/src/pcm/pcm_file.c b/src/pcm/pcm_file.c index a0b8bf4..f6d222f 100644 --- a/src/pcm/pcm_file.c +++ b/src/pcm/pcm_file.c @@ -758,6 +758,7 @@ int snd_pcm_file_open(snd_pcm_t **pcmp, const char *name, ifd = open(ifname, O_RDONLY); /* TODO: mind blocking mode */ if (ifd < 0) { SYSERR("open %s for reading failed", ifname); + free(file->fname); free(file); return -errno; } @@ -772,6 +773,7 @@ int snd_pcm_file_open(snd_pcm_t **pcmp, const char *name, err = snd_pcm_new(&pcm, SND_PCM_TYPE_FILE, name, slave->stream, slave->mode); if (err < 0) { free(file->fname); + free(file->ifname); free(file); return err; }