summaryrefslogtreecommitdiff
path: root/builtin/revert.c
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2017-10-01 16:44:46 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-10-02 13:15:59 +0900
commit90dd04aaeb9ddbdc26c5937a118db505c6a28394 (patch)
tree1e948a8692e54f52bf414d27675a8bfeb101d640 /builtin/revert.c
parentThe eleventh batch for 2.15 (diff)
downloadtgif-90dd04aaeb9ddbdc26c5937a118db505c6a28394.tar.xz
repository: use FREE_AND_NULL
Use the macro FREE_AND_NULL to release allocated objects and clear their pointers. This is shorter and documents the intent better by combining the two related operations into one. Patch generated with Coccinelle and contrib/coccinelle/free.cocci. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/revert.c')
0 files changed, 0 insertions, 0 deletions