]> git.proxmox.com Git - mirror_qemu.git/commit
ppc/spapr_nvdimm: use g_autofree in spapr_nvdimm_validate_opts()
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Tue, 25 Aug 2020 21:57:47 +0000 (18:57 -0300)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 8 Sep 2020 00:08:42 +0000 (10:08 +1000)
commit90d282d0858cf5a38f3e8a7e201aeab2a0ccbe88
tree425d2e9644843cfabd1efa5a7e0f47349d1791b8
parenteab0a2d06e97ebcf74e8437aa985eee5df3a4c68
ppc/spapr_nvdimm: use g_autofree in spapr_nvdimm_validate_opts()

Since we're using the string just once, just use g_autofree and
avoid leaking it without calling g_free().

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20200825215749.213536-2-danielhb413@gmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_nvdimm.c