builtin rebase: use FREE_AND_NULL
authorSZEDER Gábor <redacted>
Sat, 6 Apr 2019 11:34:21 +0000 (18:34 +0700)
committerJunio C Hamano <redacted>
Mon, 8 Apr 2019 08:26:32 +0000 (17:26 +0900)
commit7762f44ee06f5a22254c8465a0642195f6c19658
tree4a0d2cbc7bd791e3a49d14acd2be649edc5dafdf
parent041f5ea1cf987a4068ef5f39ba0a09be85952064
builtin rebase: use FREE_AND_NULL

Use the macro FREE_AND_NULL to release memory allocated for
'head_name' and clear its pointer.

Patch generated with 'contrib/coccinelle/free.cocci' and Coccinelle
v1.0.7 (previous Coccinelle versions don't notice this).

Signed-off-by: SZEDER Gábor <redacted>
Signed-off-by: Nguyễn Thái Ngọc Duy <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/rebase.c
git clone https://git.99rst.org/PROJECT