[RTEMS Project] #1971: Memory leak in tmpfile()

RTEMS trac trac at rtems.org
Mon Feb 5 05:56:05 UTC 2018


#1971: Memory leak in tmpfile()
---------------------+--------------------------
 Reporter:  nopscmn  |       Owner:  Chris Johns
     Type:  defect   |      Status:  reopened
 Priority:  normal   |   Milestone:  4.11.3
Component:  fs       |     Version:  4.11
 Severity:  normal   |  Resolution:
 Keywords:           |  Blocked By:
 Blocking:           |
---------------------+--------------------------

Old description:

> Hello,
>
> I use tmpfile() in my RTEMS application, and found that it has memory
> leak.
> I wrote small test application (see attachment), that output memory
> usage:
>
> Memory usage before:
> Number of used blocks:  12
> Largest used block:     1288
> Total bytes used:       3628
>
> Memory used after:
> Number of used blocks:  1013
> Largest used block:     1288
> Total bytes used:       112064
>
> By 1000 iteration, each call tmpfile() cause memory leak about 108 bytes.

New description:

 Hello,

 I use tmpfile() in my RTEMS application, and found that it has memory
 leak.
 I wrote small test application (see attachment), that output memory usage:

 Memory usage before:
 Number of used blocks:  12
 Largest used block:     1288
 Total bytes used:       3628

 Memory used after:
 Number of used blocks:  1013
 Largest used block:     1288
 Total bytes used:       112064

 By 1000 iteration, each call tmpfile() cause memory leak about 108 bytes.

--

Comment (by Chris Johns):

 What should happen with this ticket?

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


More information about the bugs mailing list