aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-09-07 09:57:39 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-09-07 09:57:39 +0000
commit2007a25d6335cf93cbae85c540327b7a9e185be1 (patch)
tree8a8068f0b15e1baf443d36418518d82e140ffb0c /util.c
parent1e5772081f03227dc1d592574bff66f20d91baf5 (diff)
Always use "g_free()" to free "ifc.ifc_buf"; it's set to a value
allocated by "g_malloc()", and one should always use "g_free()" to free stuff allocated with "g_malloc()" (using "free()" works if GLib isn't compiled with any special memory allocator debugging/profiling options, but doesn't work if it is compiled with those options). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2393 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.c b/util.c
index 72cec99c16..1d4afcc388 100644
--- a/util.c
+++ b/util.c
@@ -1,7 +1,7 @@
/* util.c
* Utility routines
*
- * $Id: util.c,v 1.42 2000/08/31 11:12:19 girlich Exp $
+ * $Id: util.c,v 1.43 2000/09/07 09:57:39 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -632,7 +632,7 @@ get_interface_list(int *err, char *err_str)
#endif
}
- free(ifc.ifc_buf);
+ g_free(ifc.ifc_buf);
close(sock);
if (il == NULL) {