Skip to content

Commit 7e20e62

Browse files
committed
funk: fix deep asan use after poison
Now block level test vectors run with deep asan without crashes
1 parent 897428f commit 7e20e62

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/funk/fd_funk.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,14 +266,14 @@ fd_funk_delete( void * shfunk ) {
266266

267267
fd_funk_rec_map_leave( rec_map );
268268

269-
/* Free the fd_alloc instance */
270-
271-
fd_wksp_free_laddr( fd_alloc_delete( fd_alloc_leave( alloc ) ) );
272-
273269
FD_COMPILER_MFENCE();
274270
FD_VOLATILE( shmem->magic ) = 0UL;
275271
FD_COMPILER_MFENCE();
276272

273+
/* Free the fd_alloc instance */
274+
275+
fd_wksp_free_laddr( fd_alloc_delete( fd_alloc_leave( alloc ) ) );
276+
277277
return shmem;
278278
}
279279

0 commit comments

Comments
 (0)