diff options
author | Mao Zhongyi <maozhongyi@cmss.chinamobile.com> | 2020-06-03 16:08:56 +0800 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2020-06-17 17:48:39 +0100 |
commit | f663492f40c1e2b500c9eda0625ff8bbb04a478c (patch) | |
tree | 98eb16de2bc920b209337e387929d502c577956f /qapi | |
parent | 2d9e3dd9be1de3bbdca113673084dd19a8d957c3 (diff) | |
download | qemu-f663492f40c1e2b500c9eda0625ff8bbb04a478c.zip qemu-f663492f40c1e2b500c9eda0625ff8bbb04a478c.tar.gz qemu-f663492f40c1e2b500c9eda0625ff8bbb04a478c.tar.bz2 |
tests/migration: mem leak fix
‘data’ has the possibility of memory leaks, so use the
glib macros g_autofree recommended by CODING_STYLE.rst
to automatically release the memory that returned from
g_malloc().
Signed-off-by: Mao Zhongyi <maozhongyi@cmss.chinamobile.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200603080904.997083-2-maozhongyi@cmss.chinamobile.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'qapi')
0 files changed, 0 insertions, 0 deletions