Bugfix: Free filename entry for writing config file when done with it