def family_free_data(c):
family = c<EOL>if not hasattr(family, '<STR_LIT>'):<EOL><INDENT>setattr(family, '<STR_LIT>', nl_list_head(container_of=family))<EOL><DEDENT>if not hasattr(family, '<STR_LIT>'):<EOL><INDENT>setattr(family, '<STR_LIT>', nl_list_head(container_of=family))<EOL><DEDENT>ops = tmp = genl_family_op()<EOL>grp = t_grp = genl_family_grp()<EOL>if family is None:<EOL><INDENT>return<EOL><DEDENT>for ops in nl_list_for_each_entry_safe(ops, tmp, family.gf_ops, '<STR_LIT>'):<EOL><INDENT>nl_list_del(ops.o_list)<EOL><DEDENT>for grp in nl_list_for_each_entry_safe(grp, t_grp, family.gf_mc_grps, '<STR_LIT>'):<EOL><INDENT>nl_list_del(grp.list_)<EOL><DEDENT>
https://github.com/thom311/libnl/blob/libnl3_2_25/lib/genl/family.c#L45.

    Positional arguments:
    c -- nl_object-derived class instance.