diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2017-06-15 23:15:48 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-16 12:44:07 -0700 |
commit | e140f7afddcdce2bae062ea1578eac38c744e3a5 (patch) | |
tree | df54a2725f418f14c64d7c0e97cb189cdbecd8c5 /blame.c | |
parent | 1b83d1251edbfb49feb84c0c32d241a63e2118a9 (diff) | |
download | git-e140f7afddcdce2bae062ea1578eac38c744e3a5.tar.gz |
coccinelle: make use of the "expression" FREE_AND_NULL() rule
A follow-up to the existing "expression" rule added in an earlier
change. This manually excludes a few occurrences, mostly things that
resulted in many FREE_AND_NULL() on one line, that'll be manually
fixed in a subsequent change.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'blame.c')
-rw-r--r-- | blame.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -314,8 +314,7 @@ static void fill_origin_blob(struct diff_options *opt, static void drop_origin_blob(struct blame_origin *o) { if (o->file.ptr) { - free(o->file.ptr); - o->file.ptr = NULL; + FREE_AND_NULL(o->file.ptr); } } |