Spotted by ASAN. Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com> --- memory_mapping.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/memory_mapping.c b/memory_mapping.c index 6a39d71da2..a5d38552a6 100644 --- a/memory_mapping.c +++ b/memory_mapping.c @@ -337,6 +337,7 @@ void memory_mapping_filter(MemoryMappingList *list, int64_t begin, if (cur->phys_addr >= begin + length || cur->phys_addr + cur->length <= begin) { QTAILQ_REMOVE(&list->head, cur, next); + g_free(cur); list->num--; continue; } -- 2.12.0.191.gc5d8de91d