From 14a3f32d9e0c955a63b046fd3542127d1778520b Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 26 Oct 2009 12:18:24 +0100 Subject: rom loader: use qemu_strdup. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori --- hw/loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw') diff --git a/hw/loader.c b/hw/loader.c index 7aa1a676e6..6baafa88bc 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); -- cgit v1.2.3