getline may allocate which will call libc's malloc directly meaning that that memory needs to be freed with the same allocator. To avoid requiring this we should provide a wrapper for getline that does the allocation using PA malloc. We should then change __real_free to free in memory_maps.c.
getlinemay allocate which will call libc'smallocdirectly meaning that that memory needs to be freed with the same allocator. To avoid requiring this we should provide a wrapper forgetlinethat does the allocation using PAmalloc. We should then change__real_freetofreeinmemory_maps.c.