aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-09-07 09:57:39 +0000
committerGuy Harris <guy@alum.mit.edu>2000-09-07 09:57:39 +0000
commita708cd140f218c1b8a233f54baed67977a760db6 (patch)
tree8a8068f0b15e1baf443d36418518d82e140ffb0c /util.c
parentf52ffba40709c1d134671eef22086827cdeda0f3 (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). svn path=/trunk/; revision=2393
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) {