Added malloc.h and malloc_trim(0) to return linked list memory back to the kernel