From patchwork Mon Oct 26 11:18:24 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v4,1/4] rom loader: use qemu_strdup. Date: Mon, 26 Oct 2009 01:18:24 -0000 From: Gerd Hoffmann X-Patchwork-Id: 36895 Message-Id: <1256555907-21505-2-git-send-email-kraxel@redhat.com> To: qemu-devel@nongnu.org Cc: Gerd Hoffmann 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);