cgen: vcleanup call fix (#4186)

pull/4189/head
Major Taylor 2020-04-02 03:18:45 -04:00 committed by GitHub
parent 561b7a0ea5
commit 3eff266eb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -2683,7 +2683,9 @@ pub fn (g mut Gen) write_tests_main() {
g.writeln('\tBenchedTests_end_testing(&bt);')
}
g.writeln('')
g.writeln('\t_vcleanup();')
if g.autofree {
g.writeln('\t_vcleanup();')
}
g.writeln('\treturn g_test_fails > 0;')
g.writeln('}')
}