diff options
author | Martin Ågren <martin.agren@gmail.com> | 2017-10-01 19:42:08 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-02 13:03:10 +0900 |
commit | 886e1084d78cda218b4d1133e8154e8556f92222 (patch) | |
tree | 2114089d84f6112c5bca73b3360fce8c820f25ab /builtin/checkout.c | |
parent | 4010f1d1b782eb7585e0e0abcefa794bd5ff29a0 (diff) | |
download | git-886e1084d78cda218b4d1133e8154e8556f92222.tar.gz |
builtin/: add UNLEAKsma/builtin-unleak
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>
Diffstat (limited to 'builtin/checkout.c')
-rw-r--r-- | builtin/checkout.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/checkout.c b/builtin/checkout.c index 2d75ac66c7..fef94c0223 100644 --- a/builtin/checkout.c +++ b/builtin/checkout.c @@ -1291,6 +1291,7 @@ int cmd_checkout(int argc, const char **argv, const char *prefix) strbuf_release(&buf); } + UNLEAK(opts); if (opts.patch_mode || opts.pathspec.nr) return checkout_paths(&opts, new.name); else |