Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-dev: [Wireshark-dev] Free used in capture-pcap-util.c

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: "Anders Broman" <anders.broman@xxxxxxxxxxxx>
Date: Mon, 5 May 2008 11:21:11 +0200

Title: Free used in capture-pcap-util.c

Hi,
Is there a reason for using free insted of g_free here?
Regards
Anders

Index: capture-pcap-util.c
===================================================================
--- capture-pcap-util.c (revision 25230)
+++ capture-pcap-util.c (working copy)
@@ -412,7 +412,7 @@
                        linktype_list = g_list_append(linktype_list,
                            data_link_info);
        }
-       free(linktypes);
+       g_free(linktypes);
 #else
        data_link_info = create_data_link_info(deflt);
        linktype_list = g_list_append(linktype_list, data_link_info);

  • Follow-Ups:
    • Re: [Wireshark-dev] Free used in capture-pcap-util.c
      • From: Stig Bjørlykke
  • Prev by Date: Re: [Wireshark-dev] mialin list Wireshark-dev@xxxxxxxxxxxxx
  • Next by Date: Re: [Wireshark-dev] Free used in capture-pcap-util.c
  • Previous by thread: Re: [Wireshark-dev] mialin list Wireshark-dev@xxxxxxxxxxxxx
  • Next by thread: Re: [Wireshark-dev] Free used in capture-pcap-util.c
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation