Wireshark-bugs: [Wireshark-bugs] [Bug 4064] New: two unused local variables / memory leaks
Date: Tue, 29 Sep 2009 05:43:37 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4064

           Summary: two unused local variables / memory leaks
           Product: Wireshark
           Version: 1.2.1
          Platform: Other
               URL: https://bugzilla.novell.com/show_bug.cgi?id=542491
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: stick@xxxxxx


Build Information:

--
We've received the following report from a reporter:

-----

For source code file wireshark-1.2.1/gtk/sctp_assoc_analyse.c,
there appears to be two unused local variables. I can prove
this from the command line

> fgrep ip_src ../BUILD/wireshark-1.2.1/gtk/sctp_assoc_analyse.c
        guint8* ip_src;
        ip_src = g_malloc(edt->pi.net_src.len);
        memcpy(ip_src, edt->pi.net_src.data, edt->pi.net_src.len);

and

> fgrep ip_dst ../BUILD/wireshark-1.2.1/gtk/sctp_assoc_analyse.c
        guint8* ip_dst;
        ip_dst = g_malloc(edt->pi.net_dst.len);
        memcpy(ip_dst, edt->pi.net_dst.data, edt->pi.net_dst.len);

-----

It seems that this is unused local variable and a memory leak.


-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.