[Bug 215752] /bin/echo utility does not free() the memory which allocated by malloc()

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jan 4 03:10:35 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215752

            Bug ID: 215752
           Summary: /bin/echo utility does not free() the memory which
                    allocated by malloc()
           Product: Base System
           Version: 10.3-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: by at reorigin.com

Overview:
I found the bug at the time viewing the source code of /bin/echo, it uses
malloc() to allocate memory, but there is no free() action takes place to free
the memory allocated.

Expected Results:
I think the /bin/echo utility should free() the memory at any time terminating
the process, normally or abnormally.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list