]> git.proxmox.com Git - qemu.git/blobdiff - hw/loader.c
rom loader: use qemu_strdup.
[qemu.git] / hw / loader.c
index 7aa1a676e6a69e925f147969b32a41da05f032fd..6baafa88bc27d8c3bd69feb8adea9b3db430f84b 100644 (file)
@@ -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);