From patchwork Mon Jun 22 11:16:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 50156 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2081521594 for ; Mon, 22 Jun 2015 11:24:31 +0000 (UTC) Received: by wilk19 with SMTP id k19sf2306496wil.3 for ; Mon, 22 Jun 2015 04:24:30 -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=HybZ2yCE1oSeCzQgumRbeCxB7g1pLjc1Ti8Rj5ik1N8=; b=fEvot/VjNJA+caRn1HVwNBfvOwXJd8quD7X8q4VjV8SaSHL6eibf2J2MgV0ySjHs41 A+RZpmoGdi+mTzCkbrqWLstVjwN1t8j1GhvHPvX9wn5spnTEQwbj/QU9I6AE2sVX1q+0 G1gVe7Z7C8NUyzACsI3rx/zVPAieW0Mx+xxs1HYLcfWot1WRdw9lfyvvyi6cwS4FdjqP Sn0l20QIHPiTMR2qfzrKHu44rKDVO8CJwazMADGkXQO8jhcaXJIAzM6gp2quyXiAA8an f5xB56p+LoMRmRioze0ZaMIZ+AlfTg+ztPlY7ShNA2cZMXhUwpomqKmc7abV+xpTAwM3 adjg== X-Gm-Message-State: ALoCoQnzR7H0bp9cKXbhqRNXAcH4yk1GBx9v7bLDZBodN9fxV8YUIbUKrcPziryWOz59aWnC/TY/ X-Received: by 10.180.89.231 with SMTP id br7mr15657263wib.0.1434972270411; Mon, 22 Jun 2015 04:24:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.4.199 with SMTP id m7ls898766lam.83.gmail; Mon, 22 Jun 2015 04:24:30 -0700 (PDT) X-Received: by 10.112.155.103 with SMTP id vv7mr24122363lbb.75.1434972270175; Mon, 22 Jun 2015 04:24:30 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id t1si16306726lbk.72.2015.06.22.04.24.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jun 2015 04:24:30 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbbvz5 with SMTP id vz5so58532091lbb.0 for ; Mon, 22 Jun 2015 04:24:29 -0700 (PDT) X-Received: by 10.112.220.7 with SMTP id ps7mr29253604lbc.72.1434972269697; Mon, 22 Jun 2015 04:24:29 -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 hn6csp2309201lbb; Mon, 22 Jun 2015 04:24:28 -0700 (PDT) X-Received: by 10.55.21.41 with SMTP id f41mr61021932qkh.0.1434972268173; Mon, 22 Jun 2015 04:24:28 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [208.118.235.17]) by mx.google.com with ESMTPS id k102si18766254qkh.11.2015.06.22.04.24.27 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 22 Jun 2015 04:24:28 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; Received: from localhost ([::1]:39353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6zpz-0004DJ-0j for patch@linaro.org; Mon, 22 Jun 2015 07:24:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6zp3-0003VL-L2 for qemu-devel@nongnu.org; Mon, 22 Jun 2015 07:23:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6zoz-00053D-IJ for qemu-devel@nongnu.org; Mon, 22 Jun 2015 07:23:29 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:37208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6zoz-00052t-AZ; Mon, 22 Jun 2015 07:23:25 -0400 Received: from tsrv.tls.msk.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 7DCE941E48; Mon, 22 Jun 2015 14:23: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 A841AA58; Mon, 22 Jun 2015 14:16:31 +0300 (MSK) Received: (nullmailer pid 9278 invoked by uid 1000); Mon, 22 Jun 2015 11:16:30 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Date: Mon, 22 Jun 2015 14:16:26 +0300 Message-Id: <08fbd77fdcb79d7ec6e10a04e9ab5411cc8b686a.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 19/21] hw/display/cg3.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.217.178 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: Shannon Zhao Signed-off-by: Michael Tokarev --- hw/display/cg3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/display/cg3.c b/hw/display/cg3.c index b94e5e0..34dcbc3 100644 --- a/hw/display/cg3.c +++ b/hw/display/cg3.c @@ -303,6 +303,7 @@ static void cg3_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("cg3: could not load prom '%s'", CG3_ROM_FILE); }