Command-line utility: avoid double free()s when modifying config option