mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: remove an unnecessary malloc() call
This commit is contained in:
parent
867f952d6b
commit
6dd1270539
@ -129,7 +129,6 @@ TODO
|
||||
print_backtrace()
|
||||
#endif
|
||||
*/
|
||||
free(C.malloc(n))
|
||||
ptr := C.malloc(n)
|
||||
if isnil(ptr) {
|
||||
panic('malloc($n) failed')
|
||||
|
Loading…
Reference in New Issue
Block a user