Re: [Qemu-devel] [PATCH] migration: use g_free for ram load bitmap

2018-05-27 Thread Ján Tomko
On Fri, May 25, 2018 at 09:50:42AM +0800, Peter Xu wrote: Buffers allocated with bitmap_new() should be freed with g_free(). Both reported by Coverity: *** CID 1391300: API usage errors (ALLOC_FREE_MISMATCH) /migration/ram.c: 3517 in ram_dirty_bitmap_reload() 3511 * the last one to s

Re: [Qemu-devel] [PATCH] migration: use g_free for ram load bitmap

2018-05-25 Thread Juan Quintela
Peter Xu wrote: > Buffers allocated with bitmap_new() should be freed with g_free(). > > Both reported by Coverity: > > *** CID 1391300: API usage errors (ALLOC_FREE_MISMATCH) > /migration/ram.c: 3517 in ram_dirty_bitmap_reload() > 3511 * the last one to sync, we need to notify the main

[Qemu-devel] [PATCH] migration: use g_free for ram load bitmap

2018-05-24 Thread Peter Xu
Buffers allocated with bitmap_new() should be freed with g_free(). Both reported by Coverity: *** CID 1391300: API usage errors (ALLOC_FREE_MISMATCH) /migration/ram.c: 3517 in ram_dirty_bitmap_reload() 3511 * the last one to sync, we need to notify the main send thread. 3512 *