Skip to content

Commit 46b8883

Browse files
committed
add another check
1 parent 8c05699 commit 46b8883

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/flamenco/runtime/tests/fd_dump_pb.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ dump_sanitized_transaction( fd_funk_t * funk,
273273
fd_acct_addr_t const * account_keys = fd_txn_get_acct_addrs( txn_descriptor, txn_payload );
274274
for( ulong i = 0; i < txn_descriptor->acct_addr_cnt; i++ ) {
275275
pb_bytes_array_t * account_key = fd_spad_alloc( spad, alignof(pb_bytes_array_t), PB_BYTES_ARRAY_T_ALLOCSIZE(sizeof(fd_pubkey_t)) );
276+
if( FD_UNLIKELY( NULL == account_key ) ) {
277+
FD_LOG_ERR(( "fd_spad_alloc failed" ));
278+
}
276279
account_key->size = sizeof(fd_pubkey_t);
277280
memcpy( account_key->bytes, &account_keys[i], sizeof(fd_pubkey_t) );
278281
message->account_keys[i] = account_key;

0 commit comments

Comments
 (0)