mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
free/malloc fixes
This commit is contained in:
@@ -93,11 +93,6 @@ pub fn free(ptr voidptr) {
|
||||
C.free(ptr)
|
||||
}
|
||||
|
||||
fn _strlen(s byteptr) int {
|
||||
return C.strlen(s)
|
||||
}
|
||||
|
||||
|
||||
fn memdup(src voidptr, sz int) voidptr {
|
||||
mem := malloc(sz)
|
||||
return C.memcpy(mem, src, sz)
|
||||
|
||||
Reference in New Issue
Block a user