summaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorChen Gang2014-06-02 14:16:55 +0200
committerMichael Tokarev2014-06-10 17:54:43 +0200
commit4380be0e997284159e634100d2f5ec87f944d74d (patch)
tree79ce4b62efdc47559ec396ab986841a3cc17a945 /scripts/checkpatch.pl
parentlibcacard: Clean up dead stores before g_free() (diff)
downloadqemu-4380be0e997284159e634100d2f5ec87f944d74d.tar.gz
qemu-4380be0e997284159e634100d2f5ec87f944d74d.tar.xz
qemu-4380be0e997284159e634100d2f5ec87f944d74d.zip
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 <gang.chen.5i5j@gmail.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions