diff --git a/barretenberg/cpp/src/barretenberg/chonk/chonk.cpp b/barretenberg/cpp/src/barretenberg/chonk/chonk.cpp index c5f68ad6a2ec..1b0d10d52008 100644 --- a/barretenberg/cpp/src/barretenberg/chonk/chonk.cpp +++ b/barretenberg/cpp/src/barretenberg/chonk/chonk.cpp @@ -413,15 +413,15 @@ void Chonk::accumulate(ClientCircuit& circuit, const std::shared_ptr prover_instance = std::make_shared(circuit); +#ifndef NDEBUG + debug_incoming_circuit(circuit, prover_instance, precomputed_vk); +#endif + // Free circuit block memory (wires and selectors) now that they've been copied to prover polynomials for (auto& block : circuit.blocks.get()) { block.free_data(); } -#ifndef NDEBUG - debug_incoming_circuit(circuit, prover_instance, precomputed_vk); -#endif - // We're accumulating a kernel if the verification queue is empty (because the kernel circuit contains recursive // verifiers for all the entries previously present in the verification queue) and if it's not the first accumulate // call (which will always be for an app circuit).