Add a flag indicating whether the type string in generic_info needs to be freed,… See merge request !19