diff options
-rw-r--r-- | cpukit/libblock/src/ide_part_table.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/libblock/src/ide_part_table.c b/cpukit/libblock/src/ide_part_table.c index 5a71d79236..38bc520deb 100644 --- a/cpukit/libblock/src/ide_part_table.c +++ b/cpukit/libblock/src/ide_part_table.c @@ -389,6 +389,8 @@ read_mbr(int fd, rtems_disk_desc_t *disk_desc) if (part_desc != NULL && is_extended(part_desc->sys_type)) { read_extended_partition(fd, part_desc->start, part_desc); + free(part_desc); + disk_desc->partitions[part_num] = NULL; } } |