tests/migration: mem leak fix
commitf663492f40c1e2b500c9eda0625ff8bbb04a478c
authorMao Zhongyi <maozhongyi@cmss.chinamobile.com>
Wed, 3 Jun 2020 08:08:56 +0000 (3 16:08 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 17 Jun 2020 16:48:39 +0000 (17 17:48 +0100)
tree98eb16de2bc920b209337e387929d502c577956f
parent2d9e3dd9be1de3bbdca113673084dd19a8d957c3
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>
tests/migration/stress.c