summaryrefslogtreecommitdiff
path: root/builtin/name-rev.c
diff options
context:
space:
mode:
authorMartin Ågren <martin.agren@gmail.com>2017-10-01 17:42:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-10-02 04:03:10 (GMT)
commit886e1084d78cda218b4d1133e8154e8556f92222 (patch)
tree2114089d84f6112c5bca73b3360fce8c820f25ab /builtin/name-rev.c
parent4010f1d1b782eb7585e0e0abcefa794bd5ff29a0 (diff)
downloadgit-886e1084d78cda218b4d1133e8154e8556f92222.zip
git-886e1084d78cda218b4d1133e8154e8556f92222.tar.gz
git-886e1084d78cda218b4d1133e8154e8556f92222.tar.bz2
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>
Diffstat (limited to 'builtin/name-rev.c')
-rw-r--r--builtin/name-rev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/name-rev.c b/builtin/name-rev.c
index c41ea7c..9e584f5 100644
--- a/builtin/name-rev.c
+++ b/builtin/name-rev.c
@@ -494,5 +494,6 @@ int cmd_name_rev(int argc, const char **argv, const char *prefix)
always, allow_undefined, data.name_only);
}
+ UNLEAK(revs);
return 0;
}