diff options
author | Evan Huus <eapache@gmail.com> | 2012-10-06 23:56:56 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2012-10-06 23:56:56 +0000 |
commit | 4971b30d53aa7403e7efee36fdecd5dfc114b175 (patch) | |
tree | 2e46dd0a5559ebacf992416563de3ad103c37ddf /epan/radius_dict.l | |
parent | 8bcc1ed05c09f0a3217f2d6751257d3c691b904b (diff) |
Clean up better if we can't open a radius dictionary included by another
radius dictionary. One of many issues with the way we load radius
dictionaries.
Part of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7803
svn path=/trunk/; revision=45359
Diffstat (limited to 'epan/radius_dict.l')
-rw-r--r-- | epan/radius_dict.l | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/radius_dict.l b/epan/radius_dict.l index 0306ddd663..1d27917a7f 100644 --- a/epan/radius_dict.l +++ b/epan/radius_dict.l @@ -266,6 +266,9 @@ if (!yyin) { if (errno) { g_string_append_printf(error, "Could not open file: '%s', error: %s\n", fullpaths[include_stack_ptr], g_strerror(errno) ); + g_free(fullpaths[include_stack_ptr]); + fullpaths[include_stack_ptr] = NULL; + include_stack_ptr--; yyterminate(); } } else { |