coccinelle: add a rule to make "expression" code use FREE_AND_NULL()
commit1b83d1251edbfb49feb84c0c32d241a63e2118a9
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 15 Jun 2017 23:15:47 +0000 (15 23:15 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 Jun 2017 19:44:04 +0000 (16 12:44 -0700)
tree8cd6b7bbcafa2da07e575537a506a33f7d09365f
parent6a83d902073803c4141e02c53decf8c03e35da27
coccinelle: add a rule to make "expression" code use FREE_AND_NULL()

A follow-up to the existing "type" rule added in an earlier
change. This catches some occurrences that are missed by the previous
rule.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/coccinelle/free.cocci