https://bugzilla.mindrot.org/show_bug.cgi?id=2182

            Bug ID: 2182
           Summary: getopt(3) command-line arguments memleaks
           Product: Portable OpenSSH
           Version: 6.4p1
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: ssh
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 2386
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2386&action=edit
Plug getopt(3) command-line arguments memleaks

Some options, when used more than once, are currently leaking memory.
For instance:
    $ ssh -Elog1 -Elog2 -carcfour -caes128-ctr

I've decided to remove the xstrdup call and used a simple assignment to
optarg when specifying a log file, instead of freeing it previously,
since it's only used once in log_redirect_stderr_to.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

Reply via email to