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
This commit is contained in:
Evan Huus 2012-10-06 23:56:56 +00:00
parent 8bcc1ed05c
commit 4971b30d53
1 changed files with 3 additions and 0 deletions

View File

@ -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 {