Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

#1402 closed defect (fixed)

possible memory leak in cpukit\libblock\src\ide_part_table.c

Reported by: Dmitriy Owned by: Sebastian Huber
Priority: normal Milestone: 4.10
Component: lib/block Version: unknown
Severity: normal Keywords:
Cc: nbkolchin@… Blocked By:
Blocking:

Description

possible memory leak in cpukit\libblock\src\ide_part_table.c in rtems_ide_part_table_initialize function on negative branch. Forgot to free disk_desc.

rc = rtems_ide_part_table_get(dev_name, disk_desc);
if (rc != RTEMS_SUCCESSFUL)
{

free(disk_desk); need to add
return rc;

}

Attachments (1)

ide-part-table.patch (547 bytes) - added by Sebastian Huber on 11/20/09 at 09:07:27.
Bugfix

Download all attachments as: .zip

Change History (5)

comment:1 Changed on 05/17/09 at 20:52:33 by Nickolay Semyonov-Kolchin

Cc: Nickolay Semyonov-Kolchin added

Changed on 11/20/09 at 09:07:27 by Sebastian Huber

Attachment: ide-part-table.patch added

Bugfix

comment:2 Changed on 11/20/09 at 09:07:27 by Sebastian Huber

Owner: changed from Joel Sherrill to Sebastian Huber
Status: newassigned

comment:3 Changed on 12/02/09 at 09:25:04 by Sebastian Huber

Resolution: fixed
Status: assignedclosed

Fixed on CVS head.

comment:4 Changed on 10/10/17 at 06:49:52 by Sebastian Huber

Component: scorelib/block
Note: See TracTickets for help on using tickets.