Fixed double free in command line interface