Message ID | 1369709437-24969-8-git-send-email-qiaonuohan@cn.fujitsu.com |
---|---|
State | New |
Headers | show |
diff --git a/dump.c b/dump.c index 405eeb1..91a2384 100644 --- a/dump.c +++ b/dump.c @@ -1261,6 +1261,25 @@ cleanup: return -1; } +static void clean_state(DumpState *s) +{ + if (s->dh) { + g_free(s->dh); + } + + if (s->kh) { + g_free(s->kh); + } + + free_dump_bitmap(s->dump_bitmap1); + + free_dump_bitmap(s->dump_bitmap2); + + free_cache_data(s->page_desc); + + free_cache_data(s->page_data); +} + void qmp_dump_guest_memory(bool paging, const char *file, bool has_begin, int64_t begin, bool has_length, int64_t length, Error **errp)