search for: xc_dom_mem_type_mmap

Displaying 1 result from an estimated 1 matches for "xc_dom_mem_type_mmap".

2014 Nov 21
4
Bug#767295: [PATCH for-4.5 v2] libxc: don't leak buffer containing the uncompressed PV kernel
...>> struct xc_dom_mem { >> struct xc_dom_mem *next; >> - void *mmap_ptr; >> - size_t mmap_len; >> + void *ptr; >> + enum { >> + XC_DOM_MEM_TYPE_MALLOC_INTERNAL, >> + XC_DOM_MEM_TYPE_MALLOC_EXTERNAL, >> + XC_DOM_MEM_TYPE_MMAP, >> + } type; >> + size_t len; >> unsigned char memory[0]; >> }; >> >> @@ -298,6 +303,7 @@ void xc_dom_log_memory_footprint(struct xc_dom_image *dom); >> /* --- simple memory pool ------------------------------------------ */ >>...