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

autofree: free before return tests

This commit is contained in:
Alexander Medvednikov
2020-11-09 11:54:41 +01:00
parent 7108f89b69
commit 507d724ee6
4 changed files with 29 additions and 6 deletions

View File

@@ -110,6 +110,9 @@ pub fn mkdir(path string) ?bool {
}
*/
apath := real_path(path)
defer {
apath.free()
}
/*
$if linux {
$if !android {