aboutsummaryrefslogtreecommitdiff
path: root/hw/nubus/nubus-device.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/nubus/nubus-device.c')
-rw-r--r--hw/nubus/nubus-device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/nubus/nubus-device.c b/hw/nubus/nubus-device.c
index 0f1852f..49008e4 100644
--- a/hw/nubus/nubus-device.c
+++ b/hw/nubus/nubus-device.c
@@ -80,6 +80,7 @@ static void nubus_device_realize(DeviceState *dev, Error **errp)
&error_abort);
ret = load_image_mr(path, &nd->decl_rom);
g_free(path);
+ g_free(name);
if (ret < 0) {
error_setg(errp, "could not load romfile \"%s\"", nd->romfile);
return;