Fixed memory issues and crashes when generating argp conf