mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
net: make net.socket.write, net.socket.read_line more robust
This commit is contained in:
committed by
Alexander Medvednikov
parent
1ccd1979a4
commit
c73f34cc5f
@@ -42,5 +42,7 @@ pub fn (b mut Builder) str() string {
|
||||
}
|
||||
|
||||
pub fn (b mut Builder) free() {
|
||||
//free(b.buf.data)
|
||||
unsafe{ free(b.buf.data) }
|
||||
b.buf = make(0, 1, 1)
|
||||
b.len = 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user