Skip to content

Commit 93e7a9f

Browse files
committed
Check for deallocation in message_from_boxed_slice test
1 parent 2b9bb43 commit 93e7a9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/message_from_boxed_slice.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ fn message_from_boxed_slice() {
2828
let mut b: Box<[u8]> = Box::new([0u8; 42]);
2929
CHECK_PTR.store(b.as_mut_ptr() as *mut u8, Ordering::SeqCst);
3030
let _ = zmq::Message::from(b);
31+
assert_eq!(CHECK_PTR.load(Ordering::SeqCst), ptr::null_mut());
3132
}

0 commit comments

Comments
 (0)