[RTEMS Project] #2331: c/src/lib/libbsp/sparc/shared/1553/gr1553b.c: 2 * memory leak ?

RTEMS trac trac at rtems.org
Mon Apr 20 16:04:57 UTC 2015


#2331: c/src/lib/libbsp/sparc/shared/1553/gr1553b.c: 2 * memory leak ?
---------------------+-----------------------
 Reporter:  dcb      |       Owner:  daniel
     Type:  defect   |      Status:  assigned
 Priority:  normal   |   Milestone:  4.11.1
Component:  General  |     Version:  4.10
 Severity:  normal   |  Resolution:
 Keywords:           |
---------------------+-----------------------

Comment (by joel.sherrill):

 I believe case 1 is a leak on the error case.

 Case 2 looks OK. The two malloc'ed chunks of memory have been placed on a
 list for future use.

 Are two free's called on the close path?

--
Ticket URL: <http://devel.rtems.org/ticket/2331#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list