@@ -433,11 +433,6 @@ mod tests {
433433 let array = StructArray :: try_new ( names, fields, 4 , Validity :: NonNullable ) ;
434434
435435 unsafe {
436- let expression = vx_expression_and ( ptr:: null ( ) , 2 ) ;
437- assert ! ( expression. is_null( ) ) ;
438- let expression = vx_expression_or ( ptr:: null ( ) , 2 ) ;
439- assert ! ( expression. is_null( ) ) ;
440-
441436 let array = vx_array:: new ( Arc :: new ( array. unwrap ( ) . into_array ( ) ) ) ;
442437
443438 let root = vx_expression_root ( ) ;
@@ -470,6 +465,7 @@ mod tests {
470465 assert_eq ! ( array. to_bit_buffer( ) , expected. to_bit_buffer( ) ) ;
471466 }
472467 vx_expression_free ( expression_and123) ;
468+ vx_array_free ( applied_array) ;
473469
474470 let expression_or123 = vx_expression_or ( expressions_ptr, 2 ) ;
475471 assert ! ( !expression_or123. is_null( ) ) ;
@@ -481,6 +477,7 @@ mod tests {
481477 let expected = BoolArray :: from_iter ( [ true , true , true , false ] ) ;
482478 assert_eq ! ( array. to_bit_buffer( ) , expected. to_bit_buffer( ) ) ;
483479 }
480+ vx_array_free ( applied_array) ;
484481
485482 vx_expression_free ( expression_or123) ;
486483
0 commit comments