Skip to content

Commit a507115

Browse files
committed
Merge branch 'jk/snprintf-cleanups'
Hotfix for a topic that is already in 'master'. * jk/snprintf-cleanups: replace: plug a memory leak
2 parents 2cef68f + 372b050 commit a507115

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/replace.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ static int for_each_replace_name(const char **argv, each_replace_name_fn fn)
120120
if (fn(full_hex, ref.buf, &oid))
121121
had_error = 1;
122122
}
123+
strbuf_release(&ref);
123124
return had_error;
124125
}
125126

0 commit comments

Comments
 (0)