[Bug 1694] New: memory leak in main_setenv.c

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Sat Aug 28 14:59:16 CDT 2010


           Summary: memory leak in main_setenv.c
           Product: RTEMS
           Version: HEAD
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: shell
        AssignedTo: chrisj at rtems.org
        ReportedBy: joel.sherrill at oarcorp.com
                CC: joel.sherrill at oarcorp.com

Created an attachment (id=1038)
 --> (https://www.rtems.org/bugzilla/attachment.cgi?id=1038)
Patch for CVS head.

According to http://scan2.coverity.com:9104/cov.cgi?cid=109, we do not free the
string passed into setenv.  I checked and setenv() does allocate another piece
of memory to contain the string so we should free it.

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 rtems-bugs mailing list