Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple fix of memory errors #47

Open
wants to merge 10 commits into
base: dev
Choose a base branch
from
Prev Previous commit
Next Next commit
Fix wrong object free'd in test_eth_abi_bytes32
Signed-off-by: Shen Jiamin <shen_jiamin@comp.nus.edu.sg>
LuminousXLB committed Oct 12, 2024
commit 4d0b39cf4c0a333780b7929a6799fcd6ab21b067
2 changes: 1 addition & 1 deletion test/test-eth-abi.c
Original file line number Diff line number Diff line change
@@ -336,7 +336,7 @@ void test_eth_abi_bytes32() {
ok(eth_abi_from_hex(&abi1,
"f507a54fef38fbd2718fff5f6b54a65d57b079df170b0cd7985d9ce699c031c3", -1) == 1);
ok(eth_abi_bytes32(&abi1, b1) == 1);
ok(eth_abi_free(&abi0) == 1);
ok(eth_abi_free(&abi1) == 1);
cmp_mem(b1, b0, 32);
}