two memory leaks removed

svn path=/trunk/; revision=10599
This commit is contained in:
Ulf Lamping 2004-04-14 05:46:34 +00:00
parent 8d116606bd
commit 27ca219d2b
2 changed files with 5 additions and 2 deletions

4
file.c
View File

@ -1,7 +1,7 @@
/* file.c /* file.c
* File I/O routines * File I/O routines
* *
* $Id: file.c,v 1.371 2004/04/13 18:01:39 tuexen Exp $ * $Id: file.c,v 1.372 2004/04/14 05:46:34 ulfl Exp $
* *
* Ethereal - Network traffic analyzer * Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com> * By Gerald Combs <gerald@ethereal.com>
@ -544,6 +544,8 @@ cf_start_tail(char *fname, gboolean is_tempfile, capture_file *cf)
capture_msg = g_strdup_printf(" %s: <live capture in progress>", cf->iface); capture_msg = g_strdup_printf(" %s: <live capture in progress>", cf->iface);
statusbar_push_file_msg(capture_msg); statusbar_push_file_msg(capture_msg);
g_free(capture_msg);
} }
return err; return err;
} }

View File

@ -1,7 +1,7 @@
/* capture_info_dlg.c /* capture_info_dlg.c
* Routines for packet capture info dialog * Routines for packet capture info dialog
* *
* $Id: capture_info_dlg.c,v 1.14 2004/04/13 18:01:40 tuexen Exp $ * $Id: capture_info_dlg.c,v 1.15 2004/04/14 05:46:34 ulfl Exp $
* *
* Ethereal - Network traffic analyzer * Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com> * By Gerald Combs <gerald@ethereal.com>
@ -122,6 +122,7 @@ gchar *iface)
cap_w_title = g_strdup_printf("Ethereal: Capture - Interface %s", iface); cap_w_title = g_strdup_printf("Ethereal: Capture - Interface %s", iface);
info->cap_w = dlg_window_new(cap_w_title); info->cap_w = dlg_window_new(cap_w_title);
g_free(cap_w_title);
gtk_window_set_modal(GTK_WINDOW(info->cap_w), TRUE); gtk_window_set_modal(GTK_WINDOW(info->cap_w), TRUE);
/* Container for capture display widgets */ /* Container for capture display widgets */