Bugfix: Free filename entry for writing config file when done with it
Merge pull request #375 from luke-jr/bugfix_cfgwrite_fnleak

Free filename entry for writing config file when done with it