ppc: fix memory leak in spapr_dt_drc()
commitdbd26f2f7f589994aa2a2ec9740527a5bf201994
authorShivaprasad G Bhat <sbhat@linux.ibm.com>
Wed, 17 Jul 2019 08:20:01 +0000 (17 03:20 -0500)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 21 Aug 2019 07:17:11 +0000 (21 17:17 +1000)
treeb2a87dee45b9e1bf868d05d9a48347142138ec52
parentd758880586323da46e3e737eaefb950a7279dfba
ppc: fix memory leak in spapr_dt_drc()

Leaking the drc_name while preparing the DT properties.
Fixing that.

Also, remove the const qualifier from spapr_drc_name().

Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Message-Id: <156335159028.82682.5404622104535818162.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_drc.c