Skip to content

Commit e70ebc9

Browse files
committed
another check
1 parent 46b8883 commit e70ebc9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/flamenco/runtime/tests/harness/fd_block_harness.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ fd_runtime_fuzz_block_update_prev_epoch_votes_cache( fd_vote_accounts_pair_globa
172172
fd_memcpy( &vote_node->elem.value.owner, vote_account->owner, sizeof(fd_pubkey_t) );
173173

174174
uchar * data = fd_spad_alloc( spad, alignof(uchar), vote_account->data->size );
175+
if( FD_UNLIKELY( NULL == data ) ) {
176+
FD_LOG_ERR(( "fd_spad_alloc failed" ));
177+
}
175178
memcpy( data, vote_account->data->bytes, vote_account->data->size );
176179
fd_solana_account_data_update( &vote_node->elem.value, data );
177180

0 commit comments

Comments
 (0)