diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-09-05 12:09:31 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-09-05 08:49:12 -0700 |
commit | ee087c29c89ad54980f2521641f5f182f6adbc79 (patch) | |
tree | a9a1e82fc009128bc50c0c279f4ce5c22484367f /commit.h | |
parent | 149c83e0aa1ee75b2da9c27ce5a819025260b4da (diff) |
builtin/grep: fix leaking object context
Even when `get_oid_with_context()` fails it may have allocated some data
in the object context. But we do not release it in git-grep(1) when the
call fails, leading to a memory leak. Plug it.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
0 files changed, 0 insertions, 0 deletions