summaryrefslogtreecommitdiff
path: root/epan/uat_load.l
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2011-02-28 16:11:20 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2011-02-28 16:11:20 +0000
commit002cac81c26427db154354dfad2fe04c06351433 (patch)
tree5709aeda6d8515a88a5852de041ab5e9bdd3aaea /epan/uat_load.l
parent9a7dbb4182e4b1867a646a05f069818651d364ff (diff)
downloadwireshark-002cac81c26427db154354dfad2fe04c06351433.tar.gz
Close UAT file after loading.
Open files may prevent deleting a used profile with UAT files. svn path=/trunk/; revision=36096
Diffstat (limited to 'epan/uat_load.l')
-rw-r--r--epan/uat_load.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/uat_load.l b/epan/uat_load.l
index 0d094465fb..c07e493651 100644
--- a/epan/uat_load.l
+++ b/epan/uat_load.l
@@ -304,6 +304,7 @@ gboolean uat_load(uat_t* uat_in, char** err) {
g_free(fname); /* we're done with the file name now */
yylex();
+ fclose(yyin);
yyrestart(NULL);
uat->changed = FALSE;