Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migration: Plug memory leak in migrate-set-cache-size command
We call g_free() after cache_fini() in migration_end(), but we don't call it after cache_fini() in xbzrle_cache_resize(), leaking the memory. cache_init() and cache_fini() are a pair. Since cache_init() allocates the cache, let cache_fini() free it. This plugs the leak. Signed-off-by: Chen Gang <[email protected]> Reviewed-by: Dr. David Alan Gilbert <[email protected]> Signed-off-by: Michael Tokarev <[email protected]>
- Loading branch information