#2336 assigned defect

c/src/lib/libbsp/arm/nds/tools/ndstool/source/raster.cpp: 2 * resource leak

Reported by: David Binderman Owned by: Needs Funding
Priority: low Milestone: Indefinite
Component: unspecified Version: 4.10
Severity: minor Keywords:
Cc: Blocked By:
Blocking:

Description

1.

[rtems/c/src/lib/libbsp/arm/nds/tools/ndstool/source/raster.cpp:20]: (error) Resource leak: f

if ((bmfh.bfType[0] != 'B')
(bmfh.bfType[1] != 'M')) { fprintf(stderr, "Not a bitmap file.\n"); return -2; }

Minor bug, but looks like a missing call to fclose to me.

2.

[rtems/c/src/lib/libbsp/arm/nds/tools/ndstool/source/raster.cpp:21]: (error) Resource leak: f

Duplicate.

Change History (3)

comment:1 Changed on Apr 28, 2015 at 2:07:51 PM by Gedare Bloom

This is an upstream source I don't know if we should apply local fixes or not.

comment:2 Changed on Jan 26, 2017 at 7:16:00 AM by Sebastian Huber

Milestone: 4.11.14.11.2

comment:3 Changed on Feb 15, 2017 at 1:44:44 PM by Sebastian Huber

Milestone: 4.11.2Indefinite
Owner: set to Needs Funding
Status: newassigned
Note: See TracTickets for help on using tickets.