#2338 assigned defect

rtems/c/src/lib/libbsp/arm/nds/tools/ndstool/source/header.cpp:418: 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:


[rtems/c/src/lib/libbsp/arm/nds/tools/ndstool/source/header.cpp:418]: (error) Resource leak: fRomList

$ fgrep fRomList rtems/c/src/lib/libbsp/arm/nds/tools/ndstool/source/header.cpp

FILE *fRomList = fopen(romlistfilename, "rt");
if (!fRomList) { fprintf(stderr, "Cannot open file '%s'.\n", romlistfilename); exit(1); }
while (fgets(s, 1024, fRomList)) empty, title, title, title, title, filename, CRC32


Missing call to fclose.

Change History (2)

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


comment:2 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.