summaryrefslogtreecommitdiff
path: root/ui/gtk/hostlist_table.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-05-15 22:25:35 +0000
committerGerald Combs <gerald@wireshark.org>2012-05-15 22:25:35 +0000
commit9d9aa0f2414798b33a34f8444c41c7662bedf5c2 (patch)
tree1a9fc73d48981106182e297a52dd22aebc579e39 /ui/gtk/hostlist_table.c
parent63a5845486393d65bae047ab69206744e2896867 (diff)
downloadwireshark-9d9aa0f2414798b33a34f8444c41c7662bedf5c2.tar.gz
Don't leak an open file handle (CID 702423).
svn path=/trunk/; revision=42642
Diffstat (limited to 'ui/gtk/hostlist_table.c')
-rw-r--r--ui/gtk/hostlist_table.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/gtk/hostlist_table.c b/ui/gtk/hostlist_table.c
index cb8af51a60..b0eee8035f 100644
--- a/ui/gtk/hostlist_table.c
+++ b/ui/gtk/hostlist_table.c
@@ -1111,6 +1111,7 @@ open_as_map_cb(GtkWindow *copy_bt, gpointer data _U_)
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
"Could not create temporary directory\n%s",
map_path);
+ fclose(tpl_file);
return;
}