| 933 | }; |
| 934 | |
| 935 | static void free_transaction_data(struct reftable_transaction_data *tx_data) |
| 936 | { |
| 937 | if (!tx_data) |
| 938 | return; |
| 939 | for (size_t i = 0; i < tx_data->args_nr; i++) { |
| 940 | reftable_addition_destroy(tx_data->args[i].addition); |
| 941 | free(tx_data->args[i].updates); |
| 942 | } |
| 943 | free(tx_data->args); |
| 944 | free(tx_data); |
| 945 | } |
| 946 | |
| 947 | /* |
| 948 | * Prepare transaction update for the given reference update. This will cause |
no test coverage detected