aboutsummaryrefslogtreecommitdiffstats
path: root/src/cdrom.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2015-06-30 11:10:41 -0400
committerKevin O'Connor <kevin@koconnor.net>2015-07-04 14:23:01 -0400
commit3abdc7c018c727b96549930d2929623ca381fff7 (patch)
tree27ff8afdb34f608875fc0fa5edf9a81ab94a4354 /src/cdrom.c
parent1202f03583f3b8b46e2de6b82630054d53e24801 (diff)
downloadseabios-3abdc7c018c727b96549930d2929623ca381fff7.tar.gz
Make sure all code checks for malloc failures
This is the result of an audit of callers of the malloc_XXX() and memalign_XXX() calls. All callers need to check if these functions return NULL. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/cdrom.c')
-rw-r--r--src/cdrom.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cdrom.c b/src/cdrom.c
index 7ee36d9a..ba023405 100644
--- a/src/cdrom.c
+++ b/src/cdrom.c
@@ -123,7 +123,6 @@ cdrom_prepboot(void)
struct drive_s *drive = malloc_fseg(sizeof(*drive));
if (!drive) {
warn_noalloc();
- free(drive);
return;
}
cdemu_drive_gf = drive;