diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-04-14 18:16:56 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-04-14 18:16:56 +0000 |
commit | cb8edf66a6e9761b95273656305982b6462d80b4 (patch) | |
tree | e43e7036830d656b03429cf541b07be01cf4e8b4 /ui/gtk | |
parent | 6b1c5a9e0d057216ce11c103027fb1a40008ae2a (diff) |
From Even Huus: free a strduped string. Fixes bug 7094.
svn path=/trunk/; revision=42074
Diffstat (limited to 'ui/gtk')
-rw-r--r-- | ui/gtk/capture_dlg.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/gtk/capture_dlg.c b/ui/gtk/capture_dlg.c index 0590fee9e1..07f05270f4 100644 --- a/ui/gtk/capture_dlg.c +++ b/ui/gtk/capture_dlg.c @@ -2613,6 +2613,7 @@ add_pipe_cb(gpointer w _U_) g_save_file = gtk_entry_get_text(GTK_ENTRY(pipe_te)); name = g_strdup(g_save_file); if (strcmp(name, "New pipe") == 0 || strcmp(name, "") == 0) { + g_free(name); return; } if (strcmp(pipe_name, "New pipe") != 0) { @@ -2626,6 +2627,7 @@ add_pipe_cb(gpointer w _U_) for (i = 0; i < global_capture_opts.all_ifaces->len; i++) { device = g_array_index(global_capture_opts.all_ifaces, interface_t, i); if (strcmp(name, device.name) == 0) { + g_free(name); return; } } @@ -2690,6 +2692,7 @@ add_pipe_cb(gpointer w _U_) if (get_welcome_window() != NULL) { welcome_if_panel_reload (); } + g_free(name); } } |