From patchwork Mon Oct 19 09:46:52 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 36370 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 817A7B7B79 for ; Mon, 19 Oct 2009 20:57:33 +1100 (EST) Received: from localhost ([127.0.0.1]:53893 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mzoza-0007DN-I9 for incoming@patchwork.ozlabs.org; Mon, 19 Oct 2009 05:57:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MzopZ-0004mV-MF for qemu-devel@nongnu.org; Mon, 19 Oct 2009 05:47:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MzopU-0004jc-B8 for qemu-devel@nongnu.org; Mon, 19 Oct 2009 05:47:08 -0400 Received: from [199.232.76.173] (port=41782 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzopU-0004jZ-1J for qemu-devel@nongnu.org; Mon, 19 Oct 2009 05:47:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:17699) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MzopT-0004xg-JP for qemu-devel@nongnu.org; Mon, 19 Oct 2009 05:47:03 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9J9l2xo027138 for ; Mon, 19 Oct 2009 05:47:02 -0400 Received: from zweiblum.home.kraxel.org (vpn2-9-74.ams2.redhat.com [10.36.9.74]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with SMTP id n9J9kvRq009377; Mon, 19 Oct 2009 05:47:00 -0400 Received: by zweiblum.home.kraxel.org (Postfix, from userid 500) id A7F8D70104; Mon, 19 Oct 2009 11:46:56 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Mon, 19 Oct 2009 11:46:52 +0200 Message-Id: <1255945615-2853-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1255945615-2853-1-git-send-email-kraxel@redhat.com> References: <1255945615-2853-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH v3 1/4] rom loader: use qemu_strdup. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Gerd Hoffmann --- hw/loader.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index 7aa1a67..6baafa8 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -559,7 +559,7 @@ int rom_add_file(const char *file, rom->name = qemu_strdup(file); rom->path = qemu_find_file(QEMU_FILE_TYPE_BIOS, rom->name); if (rom->path == NULL) { - rom->path = strdup(file); + rom->path = qemu_strdup(file); } fd = open(rom->path, O_RDONLY | O_BINARY);