Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2019-12-06 23:16:31 +0300
committerJunio C Hamano <gitster@pobox.com>2019-12-06 23:36:53 +0300
commitabcf8573005d548fe213aa7b4579394fa18692a1 (patch)
tree48458508a39252cb7e52dcfc84d49a33adef5d3c /range-diff.h
parentf8675343d79058ab5200e93e6c33058e13d7bb43 (diff)
range-diff: clear `other_arg` at end of function
We were leaking memory by not clearing `other_arg` after we were done using it. Clear it after we've finished using it. Note that this isn't strictly necessary since the memory will be reclaimed once the command exits. However, since we are releasing the strbufs, we should also clear `other_arg` for consistency. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'range-diff.h')
0 files changed, 0 insertions, 0 deletions