doc/libvips-memory.md
Title: Operator index > By section > Memory
<!-- libvips/iofuncs/memory.c -->These functions cover two main areas.
First, some simple utility functions over the underlying [[email protected]] / [[email protected]] functions. Memory that is allocated and freed using these functions is interchangeable with any other GLib library.
Second, a pair of functions, [func@tracked_malloc] and [func@tracked_free], which are NOT compatible. If you [[email protected]] memory that has been allocated with [func@tracked_malloc] you will see crashes.
The tracked functions are only suitable for large allocations internal to the library, for example pixel buffers. libvips watches the total amount of live tracked memory and uses this information to decide when to trim caches.