summaryrefslogtreecommitdiff
path: root/development.md
diff options
context:
space:
mode:
Diffstat (limited to 'development.md')
-rw-r--r--development.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/development.md b/development.md
index 6795987..65c1bae 100644
--- a/development.md
+++ b/development.md
@@ -12,7 +12,8 @@ start.
toc's memory management works using an allocator which never frees anything.
This is because most of toc's data is kept around until the end of the program anyways.
Use the allocator for "permanent" allocations, and err\_malloc/err\_calloc/err\_realloc for temporary
-allocations (to avoid having it take up space for a long time).
+allocations (to avoid having it take up space for a long time). Make sure you never pass
+a size of 0 to those functions.
Memory leaks can happen if the compilation fails at any point, but they
should not happen if the compilation succeeds. Usually if there's an error