1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: vcleanup call fix (#4186)

This commit is contained in:
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

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('}')
}