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.