builtin: remove an unnecessary malloc() call

pull/2979/head
Alexander Medvednikov 2019-12-05 11:08:41 +03:00
parent 867f952d6b
commit 6dd1270539
1 changed files with 2 additions and 3 deletions

View File

@ -129,7 +129,6 @@ TODO
print_backtrace()
#endif
*/
free(C.malloc(n))
ptr := C.malloc(n)
if isnil(ptr) {
panic('malloc($n) failed')