aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-05-31 05:33:15 +0000
committerGuy Harris <guy@alum.mit.edu>2001-05-31 05:33:15 +0000
commit963de49427bfcbe7afd67d7bd4117682a5586ac1 (patch)
tree02b033b3443eb60921fff393da70a778f8445e08 /gtk
parent7b4fbe10b57c0841fb20dc252d9bd12f378875ce (diff)
Free the string you "g_strdup()"ed, rather than handing "g_free()" the
null pointer that provoked you to free the string. svn path=/trunk/; revision=3485
Diffstat (limited to 'gtk')
-rw-r--r--gtk/capture_dlg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/capture_dlg.c b/gtk/capture_dlg.c
index a004f27174..7f52396ca5 100644
--- a/gtk/capture_dlg.c
+++ b/gtk/capture_dlg.c
@@ -1,7 +1,7 @@
/* capture_dlg.c
* Routines for packet capture windows
*
- * $Id: capture_dlg.c,v 1.41 2001/04/15 03:37:16 guy Exp $
+ * $Id: capture_dlg.c,v 1.42 2001/05/31 05:33:15 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -457,7 +457,7 @@ capture_prep_ok_cb(GtkWidget *ok_bt, gpointer parent_w) {
if (if_name == NULL) {
simple_dialog(ESD_TYPE_CRIT, NULL,
"You didn't specify an interface on which to capture packets.");
- g_free(if_name);
+ g_free(if_text);
return;
}
if (cfile.iface)