Changeset b2ac8a9 in rtems for cpukit/libblock


Ignore:
Timestamp:
Jan 19, 2010, 10:05:30 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
d3231fba
Parents:
2d2dcab2
Message:

2010-01-19 Joel Sherrill <joel.sherrill@…>

Coverity Id 25

  • libblock/src/ide_part_table.c: Add free(sector) on error return path to fix leak.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/src/ide_part_table.c

    r2d2dcab2 rb2ac8a9  
    193193     */
    194194    if (is_extended(part_desc->sys_type) ||
    195         ((is_fat_partition(part_desc->sys_type)) && (part_desc->size != 0))) {
     195       ((is_fat_partition(part_desc->sys_type)) && (part_desc->size != 0))) {
    196196      *new_part_desc = part_desc;
    197197    }
     
    334334    if (!msdos_signature_check(sector))
    335335    {
     336        free(sector);
    336337        return RTEMS_INTERNAL_ERROR;
    337338    }
Note: See TracChangeset for help on using the changeset viewer.