Commit 059a4db4 authored by gates's avatar gates
Browse files

close the config file in the parser test program.

parent be60278e
......@@ -169,8 +169,10 @@ int main (int argc, char **argv)
{
config_file *cfgfile = keydbcfg_new_config_file();
int retval = keydbcfg_parse_config(cfgfile, argv[1]);
retval &= print_config_file(cfgfile);
keydbcfg_config_file_close(cfgfile);
if (!retval || !print_config_file(cfgfile))
if (!retval)
return EXIT_FAILURE;
return EXIT_SUCCESS;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment