diff --git a/src/funk/fd_funk.c b/src/funk/fd_funk.c index ba13a0fc76d..4970be18d16 100644 --- a/src/funk/fd_funk.c +++ b/src/funk/fd_funk.c @@ -266,14 +266,14 @@ fd_funk_delete( void * shfunk ) { fd_funk_rec_map_leave( rec_map ); - /* Free the fd_alloc instance */ - - fd_wksp_free_laddr( fd_alloc_delete( fd_alloc_leave( alloc ) ) ); - FD_COMPILER_MFENCE(); FD_VOLATILE( shmem->magic ) = 0UL; FD_COMPILER_MFENCE(); + /* Free the fd_alloc instance */ + + fd_wksp_free_laddr( fd_alloc_delete( fd_alloc_leave( alloc ) ) ); + return shmem; }