From patchwork Mon Jun 22 11:16:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 50158 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E054821594 for ; Mon, 22 Jun 2015 11:34:39 +0000 (UTC) Received: by lbbwc1 with SMTP id wc1sf43437549lbb.3 for ; Mon, 22 Jun 2015 04:34:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=SfWk6DifxZuZKRkKn1xnhd6maFXxPxeCT1EapHouVFg=; b=LlXmeWZFqMoGkI8uumgT4CVFdUciynEVyMviMngonVgVmcyJs1xZWU2b4HAX/RyQhv VfSoMGx3IGuJQ+mOaYP22Hu0z1FPMHt2FVYbQTKld3x9HFRCfm1Qt5wrbi/6dENYnJvg ojTbWPNb1gEouTg82CedVm+sjx3zdmnTxiywmTzw7Vlq6oRGEgXqdqHMq6Tl1uGkRHbm 7y26V/DKk33+6Hac7dP1oiXrkph+YG4gRsZXJk3MAbhWJCjVQ2RSyGZue6Oz4WRHDSTB Azvh2Cxn+5L7Du8Ok6p9BrvIpudLYEjlGawMhUwMxBz0mg8hm2rFJ1c920/lcywt9ewj aQJw== X-Gm-Message-State: ALoCoQmkJ08FKV8Sz9no4KnElMxAyupJnTj0sPhowasSuLY0gQcexrf7n3MXJR8v+5hcrara9qx/ X-Received: by 10.112.188.233 with SMTP id gd9mr27439008lbc.12.1434972878850; Mon, 22 Jun 2015 04:34:38 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.198 with SMTP id ba6ls908442lab.40.gmail; Mon, 22 Jun 2015 04:34:38 -0700 (PDT) X-Received: by 10.152.219.3 with SMTP id pk3mr29647007lac.114.1434972878690; Mon, 22 Jun 2015 04:34:38 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id w5si16315131laa.59.2015.06.22.04.34.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jun 2015 04:34:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by laka10 with SMTP id a10so107902944lak.0 for ; Mon, 22 Jun 2015 04:34:38 -0700 (PDT) X-Received: by 10.152.37.228 with SMTP id b4mr29236232lak.117.1434972878427; Mon, 22 Jun 2015 04:34:38 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp2314443lbb; Mon, 22 Jun 2015 04:34:37 -0700 (PDT) X-Received: by 10.140.218.5 with SMTP id o5mr38972745qhb.13.1434972877301; Mon, 22 Jun 2015 04:34:37 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id n78si18752374qgn.66.2015.06.22.04.34.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 22 Jun 2015 04:34:37 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:39412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6zzo-0006Jl-F1 for patch@linaro.org; Mon, 22 Jun 2015 07:34:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6zyj-0005Bk-Qf for qemu-devel@nongnu.org; Mon, 22 Jun 2015 07:33:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6zyf-00088r-Gd for qemu-devel@nongnu.org; Mon, 22 Jun 2015 07:33:29 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:47037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6zyf-00088L-8Y; Mon, 22 Jun 2015 07:33:25 -0400 Received: from tsrv.tls.msk.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 3D47541E4A; Mon, 22 Jun 2015 14:33:24 +0300 (MSK) Received: from tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by tsrv.tls.msk.ru (Postfix) with SMTP id 60E13A89; Mon, 22 Jun 2015 14:17:31 +0300 (MSK) Received: (nullmailer pid 9297 invoked by uid 1000); Mon, 22 Jun 2015 11:17:30 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Date: Mon, 22 Jun 2015 14:16:27 +0300 Message-Id: <1ef32d467d228cc23445bdaa0a1c4e9fe1ef384f.1434971627.git.mjt@msgid.tls.msk.ru> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 86.62.121.231 Cc: qemu-trivial@nongnu.org, Michael Tokarev , Shannon Zhao , Shannon Zhao Subject: [Qemu-devel] [PULL 20/21] hw/display/tcx.c: Fix memory leak X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mjt@tls.msk.ru X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Michael Tokarev --- hw/display/tcx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/display/tcx.c b/hw/display/tcx.c index f3faf78..244f777 100644 --- a/hw/display/tcx.c +++ b/hw/display/tcx.c @@ -1017,6 +1017,7 @@ static void tcx_realizefn(DeviceState *dev, Error **errp) if (fcode_filename) { ret = load_image_targphys(fcode_filename, s->prom_addr, FCODE_MAX_ROM_SIZE); + g_free(fcode_filename); if (ret < 0 || ret > FCODE_MAX_ROM_SIZE) { error_report("tcx: could not load prom '%s'", TCX_ROM_FILE); }