Changeset b2ac8a9 in rtems


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.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r2d2dcab2 rb2ac8a9  
     12010-01-19      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        Coverity Id 25
     4        * libblock/src/ide_part_table.c: Add free(sector) on error return path
     5        to fix leak.
     6
    172010-01-19      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • 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.