ppc: fix memory leak in spapr_caps_add_properties
commitd758880586323da46e3e737eaefb950a7279dfba
authorShivaprasad G Bhat <sbhat@linux.ibm.com>
Wed, 17 Jul 2019 08:19:43 +0000 (17 03:19 -0500)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 21 Aug 2019 07:17:11 +0000 (21 17:17 +1000)
tree5510949e1ad0948722cedce68d3c1d0062c7e25c
parent1872588ede5770751ebc0e1df9909c8a785cb549
ppc: fix memory leak in spapr_caps_add_properties

Free the capability name string after setting
the capability.

Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Message-Id: <156335156198.82682.8756968724044750843.stgit@lep8c.aus.stglabs.ibm.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_caps.c