commit | 22c3aea8dbaac8616db71b6adf18dee801a24fde | [log] [tgz] |
---|---|---|
author | Marc-André Lureau <marcandre.lureau@redhat.com> | Thu May 04 02:38:46 2017 +0400 |
committer | Michael Tokarev <mjt@tls.msk.ru> | Sun Jun 04 18:42:55 2017 +0300 |
tree | 0ecef793d99d86925327fbca864ce41b224ed742 | |
parent | 543f8f13e256a081dd820375e9575439b659ccd8 [diff] [blame] |
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>
diff --git a/memory_mapping.c b/memory_mapping.c index 6a39d71..a5d3855 100644 --- a/memory_mapping.c +++ b/memory_mapping.c
@@ -337,6 +337,7 @@ if (cur->phys_addr >= begin + length || cur->phys_addr + cur->length <= begin) { QTAILQ_REMOVE(&list->head, cur, next); + g_free(cur); list->num--; continue; }