diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2005-12-14 09:50:11 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2005-12-14 09:50:11 +0000 |
commit | 6124bdff49f9ef95fff0affcf6a3869a3ba3fca0 (patch) | |
tree | b926a24affbc921e59e97891b1f38b4dff3aa03c /epan/radius_dict.l | |
parent | 4f567703de3d8e46bd90d10fb099ef2ed1d9ea4f (diff) |
Close the dictionary files after reading from them.
svn path=/trunk/; revision=16795
Diffstat (limited to 'epan/radius_dict.l')
-rw-r--r-- | epan/radius_dict.l | 4 |
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]); } |