mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
json2: wrap Builder.free() calls inside unsafe (#8790)
This commit is contained in:
@@ -311,7 +311,7 @@ fn (mut p Parser) decode_string() ?Any {
|
||||
}
|
||||
p.next()
|
||||
defer {
|
||||
strwr.free()
|
||||
unsafe { strwr.free() }
|
||||
}
|
||||
str := strwr.str()
|
||||
return Any(str)
|
||||
|
||||
Reference in New Issue
Block a user