Vermont Views makes extensive use of memory that is dynamically allocated from the free data space (the heap). Memory management is done exclusively with the functions mem_get() and mem_free(). mem_get() and mem_free() call the standard compiler library functions calloc() and free().
Vermont Views functions can allocate memory in one of two ways. First, a function may allocate memory temporarily for working buffers and temporary data. The routine makes sure that enough memory is allocated to perform the action and also that the memory is properly freed when done. No special memory management is required on your part.
Second, a function can allocate memory for data or a control structure that is used within the program. You are responsible for freeing this memory by calling either a special deallocation function or mem_free(). For example, when you allocate the memory for a Designer data form with a call to dl_fmget(), you must free that memory with a call to fm_free().