From 1899ebb26d0775b1d429f46f295859ff18b340e7 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Fri, 19 Jan 2024 14:52:02 -0600 Subject: [PATCH] make sure pointers are freed --- tests/testcircom.nim | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/testcircom.nim b/tests/testcircom.nim index 1542bd5..b963b70 100644 --- a/tests/testcircom.nim +++ b/tests/testcircom.nim @@ -29,4 +29,13 @@ suite "Test circom compat nim": check ctx.verify_circuit(proofBytes, publicBytes) == ERR_OK + ctx.addr.release_circom_compat() + check ctx == nil + + proofBytes.addr.release_buffer() + check proofBytes == nil + + publicBytes.addr.release_buffer() + check publicBytes == nil + check res == ERR_OK