Skip to content

Commit afefe9e

Browse files
two-heartmmcgee-jump
authored andcommitted
funk: fix deep asan use after poison
Now block level test vectors run with deep asan without crashes
1 parent a762b27 commit afefe9e

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
@@ -270,14 +270,14 @@ fd_funk_delete( void * shfunk ) {
270270

271271
fd_funk_rec_map_leave( rec_map );
272272

273-
/* Free the fd_alloc instance */
274-
275-
fd_wksp_free_laddr( fd_alloc_delete( fd_alloc_leave( alloc ) ) );
276-
277273
FD_COMPILER_MFENCE();
278274
FD_VOLATILE( shmem->magic ) = 0UL;
279275
FD_COMPILER_MFENCE();
280276

277+
/* Free the fd_alloc instance */
278+
279+
fd_wksp_free_laddr( fd_alloc_delete( fd_alloc_leave( alloc ) ) );
280+
281281
return shmem;
282282
}
283283

0 commit comments

Comments
 (0)