Files
git/builtin
Patrick Steinhardt c92abe71df builtin/fetch: fix leaking transaction with --atomic
With the `--atomic` flag, we use a single ref transaction to commit all
ref updates in git-fetch(1). The lifetime of transactions is somewhat
weird: while `ref_transaction_abort()` will free the transaction, a call
to `ref_transaction_commit()` won't. We thus have to manually free the
transaction in the successful case.

Adapt the code to free the transaction in the exit path to plug the
resulting memory leak. As `ref_transaction_abort()` already freed the
transaction for us, we have to unset the transaction when we hit that
code path to not cause a double free.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-08-22 09:18:06 -07:00
..
2024-07-13 18:10:49 -07:00
2024-05-21 09:07:48 -07:00
2024-08-09 08:47:34 -07:00
2024-07-08 14:53:10 -07:00
2024-04-18 12:30:42 -07:00
2024-04-18 12:30:42 -07:00
2024-04-18 12:30:42 -07:00
2024-02-13 10:18:50 -08:00
2024-06-06 12:49:23 -07:00
2024-07-08 14:53:10 -07:00
2024-08-16 12:51:51 -07:00
2024-08-09 08:47:34 -07:00
2023-07-06 11:54:48 -07:00
2024-04-18 12:30:42 -07:00
2024-07-13 18:10:49 -07:00
2024-05-30 08:55:29 -07:00
2024-08-14 14:54:53 -07:00
2024-07-02 09:59:00 -07:00
2024-04-18 12:30:42 -07:00
2024-05-17 10:33:39 -07:00
2024-08-08 09:36:53 -07:00
2024-08-09 08:47:34 -07:00
2024-08-14 14:54:47 -07:00
2024-08-14 14:54:47 -07:00
2024-04-29 20:42:30 +02:00
2024-04-18 12:30:42 -07:00