From patchwork Wed Mar 12 20:45:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 3821411 Return-Path: X-Original-To: patchwork-dri-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 E9572BF549 for ; Thu, 13 Mar 2014 00:29:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 32E27201E4 for ; Thu, 13 Mar 2014 00:29:04 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 6533720165 for ; Thu, 13 Mar 2014 00:29:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 28FEFFACCF; Wed, 12 Mar 2014 17:28:54 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-we0-f180.google.com (mail-we0-f180.google.com [74.125.82.180]) by gabe.freedesktop.org (Postfix) with ESMTP id 30C6AFACFF for ; Wed, 12 Mar 2014 13:44:15 -0700 (PDT) Received: by mail-we0-f180.google.com with SMTP id p61so49654wes.25 for ; Wed, 12 Mar 2014 13:44:13 -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:in-reply-to:references; bh=JmV3Xyu+/rupTrDtBT29fX93TExddUk2fI5/MFhThhA=; b=tXbcNrE35A3efR/fYsmVfqChAffSgvcowHW7gS46SExYms0G0lkFVb8SSAXHtvvpTc tC07IoFD87rPJY7ebQ0CF/xzX9Ybtmyb3fuNT3/ahkCZchAUJbmMNgya8ZMZ2qhl3P3b J4uPOj0Qs9JiYGVPoulQkCwmMeRgAyR0ThWo2KDtvHsReEDN9cQQQXldIwEcNmbT8a6l E8mW1QCH3WeSQEhvnfBxDimoSD5iRKzzDCjTB8b1AOyffOVSLhIrbCfmcEdCWMKbheWj Siz05USSJS9p43jtilXA9vLEpfxheUz/9E1aD8KE8T48Vxio40EBkZTGaABzWMxvTB2s xO0A== X-Received: by 10.180.19.138 with SMTP id f10mr230676wie.11.1394657053036; Wed, 12 Mar 2014 13:44:13 -0700 (PDT) Received: from localhost.localdomain (cpc20-stap10-2-0-cust563.12-2.cable.virginm.net. [82.20.130.52]) by mx.google.com with ESMTPSA id f3sm1104689wiv.2.2014.03.12.13.44.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Mar 2014 13:44:11 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH 3/3] freedreno: do not leak drmVersion Date: Wed, 12 Mar 2014 20:45:45 +0000 Message-Id: <1394657145-2638-3-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1394657145-2638-1-git-send-email-emil.l.velikov@gmail.com> References: <1394657145-2638-1-git-send-email-emil.l.velikov@gmail.com> X-Mailman-Approved-At: Wed, 12 Mar 2014 17:28:51 -0700 Cc: emil.l.velikov@gmail.com, Rob Clark X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Cc: Rob Clark Signed-off-by: Emil Velikov Reviewed-by: Rob Clark --- freedreno/freedreno_device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/freedreno/freedreno_device.c b/freedreno/freedreno_device.c index 598bdfb..c34963c 100644 --- a/freedreno/freedreno_device.c +++ b/freedreno/freedreno_device.c @@ -98,6 +98,7 @@ struct fd_device * fd_device_new(int fd) ERROR_MSG("unknown device: %s", version->name); dev = NULL; } + drmFreeVersion(version); if (!dev) return NULL;