The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
; use strict
; use CGI

; $My::Test = 'A'

; package My::CBB
; use CGI::Builder
  qw| CGI::Builder::DFVCheck
    |

; sub DESTROY
   { $My::Test .= 'B'
   }

; package main
; use Test::More tests => 1


; { my $cbb = My::CBB->new
  ; my $dfv = $cbb->dfv_check( { required => 'email'
                              , msgs     => { prefix => 'err_' }
                              }
                            )
  ; $cbb->capture('process')
}

; $My::Test .= 'C'

; is( $My::Test
    , 'ABC'
    , 'Memory leaking test'
    )