Check that malloc succeeds during sampling