[RTEMS Project] #2336: c/src/lib/libbsp/arm/nds/tools/ndstool/source/raster.cpp: 2 * resource leak

RTEMS trac trac at rtems.org
Tue Apr 28 09:00:38 UTC 2015


#2336: c/src/lib/libbsp/arm/nds/tools/ndstool/source/raster.cpp: 2 * resource leak
---------------------+--------------------
 Reporter:  dcb      |      Owner:
     Type:  defect   |     Status:  new
 Priority:  low      |  Milestone:  4.11.1
Component:  General  |    Version:  4.10
 Severity:  minor    |   Keywords:
---------------------+--------------------
 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.

--
Ticket URL: <http://devel.rtems.org/ticket/2336>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list