diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-05-04 02:38:46 +0400 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2017-06-04 18:42:55 +0300 |
commit | 22c3aea8dbaac8616db71b6adf18dee801a24fde (patch) | |
tree | 0ecef793d99d86925327fbca864ce41b224ed742 /memory_mapping.c | |
parent | 543f8f13e256a081dd820375e9575439b659ccd8 (diff) |
dump: fix memory_mapping_filter leak
Spotted by ASAN.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'memory_mapping.c')
-rw-r--r-- | memory_mapping.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |