From patchwork Fri Nov 16 06:47:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivia Yin X-Patchwork-Id: 199501 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 6B6B62C0094 for ; Fri, 16 Nov 2012 18:08:38 +1100 (EST) Received: from localhost ([::1]:42341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZG2W-0007b4-30 for incoming@patchwork.ozlabs.org; Fri, 16 Nov 2012 02:08:36 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZG2N-0007ab-Fn for qemu-devel@nongnu.org; Fri, 16 Nov 2012 02:08:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZG2K-0003A1-DN for qemu-devel@nongnu.org; Fri, 16 Nov 2012 02:08:27 -0500 Received: from ch1ehsobe003.messaging.microsoft.com ([216.32.181.183]:24236 helo=ch1outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZG2E-00038x-48; Fri, 16 Nov 2012 02:08:18 -0500 Received: from mail100-ch1-R.bigfish.com (10.43.68.237) by CH1EHSOBE017.bigfish.com (10.43.70.67) with Microsoft SMTP Server id 14.1.225.23; Fri, 16 Nov 2012 07:08:16 +0000 Received: from mail100-ch1 (localhost [127.0.0.1]) by mail100-ch1-R.bigfish.com (Postfix) with ESMTP id 977623C0266; Fri, 16 Nov 2012 07:08:16 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 0 X-BigFish: VS0(zzzz1de0h1202h1d1ah1d2ahzz8275bhz2dh2a8h668h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h1354h137ah139eh13b6h1441h1504h1537h162dh1631h1155h) Received: from mail100-ch1 (localhost.localdomain [127.0.0.1]) by mail100-ch1 (MessageSwitch) id 1353049695468808_32425; Fri, 16 Nov 2012 07:08:15 +0000 (UTC) Received: from CH1EHSMHS015.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.248]) by mail100-ch1.bigfish.com (Postfix) with ESMTP id 6675430001D; Fri, 16 Nov 2012 07:08:15 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CH1EHSMHS015.bigfish.com (10.43.70.15) with Microsoft SMTP Server (TLS) id 14.1.225.23; Fri, 16 Nov 2012 07:08:11 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-004.039d.mgd.msft.net (10.84.1.14) with Microsoft SMTP Server (TLS) id 14.2.318.3; Fri, 16 Nov 2012 07:08:10 +0000 Received: from localhost.localdomain (tank.ap.freescale.net [10.193.20.104]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id qAG784VX022132; Fri, 16 Nov 2012 00:08:07 -0700 From: Olivia Yin To: , Date: Fri, 16 Nov 2012 14:47:32 +0800 Message-ID: <1353048452-27338-1-git-send-email-hong-hua.yin@freescale.com> X-Mailer: git-send-email 1.5.6.5 MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 216.32.181.183 Cc: Olivia Yin Subject: [Qemu-devel] [PATCH] free the memory malloced by load_at() 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Olivia Yin --- hw/elf_ops.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/elf_ops.h b/hw/elf_ops.h index db4630e..4495932 100644 --- a/hw/elf_ops.h +++ b/hw/elf_ops.h @@ -178,6 +178,8 @@ static int glue(load_symbols, SZ)(struct elfhdr *ehdr, int fd, int must_swab, s->disas_strtab = str; s->next = syminfos; syminfos = s; + g_free(syms); + g_free(str); g_free(shdr_table); return 0; fail: