aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/hw_disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/ppc/hw_disk.c')
-rw-r--r--sim/ppc/hw_disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/ppc/hw_disk.c b/sim/ppc/hw_disk.c
index 0e9573b..041ed38 100644
--- a/sim/ppc/hw_disk.c
+++ b/sim/ppc/hw_disk.c
@@ -203,7 +203,7 @@ open_disk_image(device *me,
if (disk->image != NULL)
fclose(disk->image);
if (disk->name != NULL)
- zfree(disk->name);
+ free(disk->name);
disk->name = strdup(name);
disk->image = fopen(disk->name, disk->read_only ? "r" : "r+");
if (disk->image == NULL) {
@@ -351,7 +351,7 @@ hw_disk_instance_delete(device_instance *instance)
hw_disk_instance *data = device_instance_data(instance);
DITRACE(disk, ("delete - instance=%ld\n",
(unsigned long)device_instance_to_external(instance)));
- zfree(data);
+ free(data);
}
static int