summaryrefslogtreecommitdiff
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-07-17 11:32:14 +0200
committerJunio C Hamano <gitster@pobox.com>2026-07-18 19:03:48 -0700
commit0e002f6dc74841324687284e6a3ae4a6061c0c73 (patch)
tree86be50f6e64b9b9569234ba6db9400984045ce24 /contrib/persistent-https
parent8d9135dce3be50c961f23f5e89352b0fd1d61117 (diff)
object-file: fix memory leak in `force_object_loose()`
We return an error when converting the given object to the compatibility hash algorithm fails. This early return causes a memory leak though, because we don't free the content buffer that we've already read before via `odb_read_object_info_extended()`. Plug the memory leak by creating a common exit path where the buffer gets free'd. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions