builtin/: add UNLEAKs
commit886e1084d78cda218b4d1133e8154e8556f92222
authorMartin Ågren <martin.agren@gmail.com>
Sun, 1 Oct 2017 17:42:08 +0000 (1 19:42 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Oct 2017 04:03:10 +0000 (2 13:03 +0900)
tree2114089d84f6112c5bca73b3360fce8c820f25ab
parent4010f1d1b782eb7585e0e0abcefa794bd5ff29a0
builtin/: add UNLEAKs

Add some UNLEAKs where we are about to return from `cmd_*`. UNLEAK the
variables in the same order as we've declared them. While addressing
`msg` in builtin/tag.c, convert the existing `strbuf_release()` calls as
well.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c
builtin/diff-index.c
builtin/diff.c
builtin/name-rev.c
builtin/tag.c