aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-04-23 22:07:56 -0700
committerJunio C Hamano <gitster@pobox.com>2017-04-23 22:07:56 -0700
commita507115e29690e831fedb060cfb50cef9e0f7514 (patch)
tree14ddfc5e9fefbd90ac335f734084a0272b9da56a /builtin
parent2cef68f8e5043729952e14f0aa4c595cafbbfc2a (diff)
parent372b050b6bd4bd3256e6fa21ab0fef47dd768d98 (diff)
downloadgit-a507115e29690e831fedb060cfb50cef9e0f7514.tar.gz
git-a507115e29690e831fedb060cfb50cef9e0f7514.tar.xz
Merge branch 'jk/snprintf-cleanups'
Hotfix for a topic that is already in 'master'. * jk/snprintf-cleanups: replace: plug a memory leak
Diffstat (limited to 'builtin')
-rw-r--r--builtin/replace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/replace.c b/builtin/replace.c
index 065515bab..ab17668f4 100644
--- a/builtin/replace.c
+++ b/builtin/replace.c
@@ -120,6 +120,7 @@ static int for_each_replace_name(const char **argv, each_replace_name_fn fn)
if (fn(full_hex, ref.buf, &oid))
had_error = 1;
}
+ strbuf_release(&ref);
return had_error;
}