Changeset b61ad65 in rtems for cpukit/libblock


Ignore:
Timestamp:
Jan 19, 2010, 11:47:41 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
c917d31
Parents:
e00381a
Message:

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

  • libblock/src/ide_part_table.c: Another error path without a free(sector).
File:
1 edited

Legend:

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

    re00381a rb61ad65  
    224224    int                  i;
    225225    dev_t                dev;
    226     rtems_sector_data_t *sector;
     226    rtems_sector_data_t *sector = NULL;
    227227    uint32_t             here;
    228228    uint8_t             *data;
     
    245245    if (rc != RTEMS_SUCCESSFUL)
    246246    {
     247        if (sector)
     248            free(sector);
    247249        return rc;
    248250    }
     
    250252    if (!msdos_signature_check(sector))
    251253    {
     254        free(sector);
    252255        return RTEMS_INTERNAL_ERROR;
    253256    }
Note: See TracChangeset for help on using the changeset viewer.