[Bug 1971] New: Memory leak in tmpfile()

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Thu Nov 24 14:50:42 UTC 2011


           Summary: Memory leak in tmpfile()
           Product: RTEMS
           Version: 4.10
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: filesystem
        AssignedTo: chrisj at rtems.org
        ReportedBy: nopscmn at gmail.com

Created attachment 1382
  --> https://www.rtems.org/bugzilla/attachment.cgi?id=1382
Test application


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.

Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the bugs mailing list