diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-10-07 10:27:55 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-07 10:27:55 +0300 |
commit | 5261fefa4aa7e9c054e1bd664a138d49a3e26d79 (patch) | |
tree | a56d45f14a526fa1bf1da76aa447ed86e1c85a3f /builtin/tag.c | |
parent | 1f57e71fabffd801d026c08e7acade834dcc16bb (diff) | |
parent | 886e1084d78cda218b4d1133e8154e8556f92222 (diff) |
Merge branch 'ma/builtin-unleak'
Many variables that points at a region of memory that will live
throughout the life of the program have been marked with UNLEAK
marker to help the leak checkers concentrate on real leaks..
* ma/builtin-unleak:
builtin/: add UNLEAKs
Diffstat (limited to 'builtin/tag.c')
-rw-r--r-- | builtin/tag.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/builtin/tag.c b/builtin/tag.c index c627794181..34efba5798 100644 --- a/builtin/tag.c +++ b/builtin/tag.c @@ -552,9 +552,10 @@ int cmd_tag(int argc, const char **argv, const char *prefix) if (force && !is_null_oid(&prev) && oidcmp(&prev, &object)) printf(_("Updated tag '%s' (was %s)\n"), tag, find_unique_abbrev(prev.hash, DEFAULT_ABBREV)); - strbuf_release(&err); - strbuf_release(&buf); - strbuf_release(&ref); - strbuf_release(&reflog_msg); + UNLEAK(buf); + UNLEAK(ref); + UNLEAK(reflog_msg); + UNLEAK(msg); + UNLEAK(err); return 0; } |