This commit is contained in:
flywind 2021-03-29 11:21:27 +08:00 • committed by GitHub
commit e5be216ccb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -188,8 +188,8 @@ when hasAlloc and not defined(js):
cast[ptr T](realloc(p, T.sizeof * newSize)) cast[ptr T](realloc(p, T.sizeof * newSize))
proc dealloc*(p: pointer) {.noconv, compilerproc, rtl, benign, raises: [], tags: [].} = proc dealloc*(p: pointer) {.noconv, compilerproc, rtl, benign, raises: [], tags: [].} =
## Frees the memory allocated with `alloc`, `alloc0` or ## Frees the memory allocated with `alloc`, `alloc0`,
## `realloc`. ## `realloc`, `create` or `createU`.
## ##
## **This procedure is dangerous!** ## **This procedure is dangerous!**
## If one forgets to free the memory a leak occurs; if one tries to ## If one forgets to free the memory a leak occurs; if one tries to