diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-09-07 09:57:39 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-09-07 09:57:39 +0000 |
commit | a708cd140f218c1b8a233f54baed67977a760db6 (patch) | |
tree | 8a8068f0b15e1baf443d36418518d82e140ffb0c /util.c | |
parent | f52ffba40709c1d134671eef22086827cdeda0f3 (diff) | |
download | wireshark-a708cd140f218c1b8a233f54baed67977a760db6.tar.gz wireshark-a708cd140f218c1b8a233f54baed67977a760db6.tar.bz2 wireshark-a708cd140f218c1b8a233f54baed67977a760db6.zip |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |