coccinelle: add a rule to make "type" code use FREE_AND_NULL()