diff --git a/lib/cgo/tests/check_cipher.address.common.c b/lib/cgo/tests/check_cipher.address.common.c index 8534b36e8..8a9965b7c 100644 --- a/lib/cgo/tests/check_cipher.address.common.c +++ b/lib/cgo/tests/check_cipher.address.common.c @@ -85,10 +85,10 @@ START_TEST(TestAddressBulk) err = SKY_cipher_Address_Verify(&addr, &pubkey); ck_assert(err == SKY_OK); - GoString_ tempstrAddr; + int8_t buf[256] = {0}; + GoString_ tempstrAddr = {.p = buf, .n = sizeof(buff)}; err = SKY_cipher_Address_String(&addr, &tempstrAddr); ck_assert(err == SKY_OK); - registerMemCleanup((void*)tempstrAddr.p); cipher__Address addr2; GoString strAddr; strAddr.n = tempstrAddr.n;