In destroy_param(parameter* param), NULL out param->weight_label and param->weight and zero param->nr_weight.
Change solver_type_table in linear.cpp from static to visible across compilation units and add declaration to linear.h