aboutsummaryrefslogtreecommitdiffstats
path: root/epan/radius_dict.l
diff options
context:
space:
mode:
authorlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>2005-12-14 09:50:11 +0000
committerlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>2005-12-14 09:50:11 +0000
commit71bda8ace6e377f52597e4b59e7a836acc19496d (patch)
treeb926a24affbc921e59e97891b1f38b4dff3aa03c /epan/radius_dict.l
parent0c590778e791a8c5c5c756ea963be701ac9fdb2a (diff)
Close the dictionary files after reading from them.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16795 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/radius_dict.l')
-rw-r--r--epan/radius_dict.l4
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/radius_dict.l b/epan/radius_dict.l
index 586b5f1975..3ea07a028d 100644
--- a/epan/radius_dict.l
+++ b/epan/radius_dict.l
@@ -192,6 +192,8 @@
<<EOF>> {
+ fclose(yyin);
+
if ( --include_stack_ptr < 0 ) {
yyterminate();
} else {
@@ -375,6 +377,8 @@ radius_dictionary_t* radius_load_dictionary (gchar* dir, const gchar* filename,
yylex();
+ fclose(yyin);
+
for (i=0; i < 10; i++) {
if (fullpaths[i]) g_free(fullpaths[i]);
}