Refactor generate_CG_Config(): return CG_Config
Simplify code by returning an allocated object to a CG_Config. It leads to less code and is easier to reason about, because each call will return a new CG_Config, which can be freed, irrespective of other calls to fill_default_reconfig().
Showing
Please register or sign in to comment