mirror of
https://github.com/logos-storage/nim-circom-compat.git
synced 2026-01-02 13:43:13 +00:00
make sure pointers are freed
This commit is contained in:
parent
05a7531cc5
commit
1899ebb26d
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user