QOM infrastructure fixes for 1.7

* QOM memory leak fix
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.19 (GNU/Linux)
 
 iQIcBAABAgAGBQJSizZiAAoJEPou0S0+fgE/9FsP/1fMsj0yyzjK1YFW0SuLNttD
 AJwjh7ysv/r5dAAwgsjTG6TQCg+tqM5Ym6SEL/6YwtHeKLJ7CMEALcB6u9dG4wFX
 9qBcyvz/akhNrBl7JBwuOMOrQ+gO1Lspws/x5izEl7o0NYr5ETin3P0RhW3PSyHG
 xvtZMSbuJ1OQZ9zV6NGY1BxVdV/4gmWgJaXM6NmYR0h5iVeCVKETLsJZDSm/+09v
 E88QUljipKlnrekAg6Ks5UBrv0aoyjeBHQ/l5YXVt995m3i3fNZnNxxQ4w4Faagj
 9znw0bIBI1qMbxCHl0PPnTaHmpNKyrb+jQRUp4E/AdAU6kpFxClW2XapGrOdGCdf
 66SI4tlkcLt95skEfSjMrHExqizuS/yr7BjH+IIWMD4VXKMCE4UUhg2LFRg0dWnC
 uUQlCpUMIGoeR4Fzh5l+Jr42y6z97bWLLq0/MAE4VazEAQGhUatdw41xC3sks0zz
 9scNFyvIdpPUW9rKEcM3bILAHSutEp8oFPVRmy9QNrqF+O9zPQzYu5fxoCAh2CpP
 iVnPYsWU+lJTFujfzUGh/vkpBg3lWo/bbLmPz47eUFPVBC7B1kbuOL/tdioksQSL
 O4vtl4asYSXTm6KrtJw4uT6qBxwBXGCeTvke49dNY66mgA7hOBl7SAWq1xreORzt
 v0RISaEOSpaEVogaq17N
 =pZXF
 -----END PGP SIGNATURE-----

Merge remote-tracking branch 'afaerber/tags/qom-devices-for-anthony' into staging

QOM infrastructure fixes for 1.7

* QOM memory leak fix

# gpg: Signature made Tue 19 Nov 2013 01:58:58 AM PST using RSA key ID 3E7E013F
# gpg: Can't check signature: public key not found

# By Vlad Yasevich
# Via Andreas Färber
* afaerber/tags/qom-devices-for-anthony:
  qom: Fix memory leak in object_property_set_link()
This commit is contained in:
Anthony Liguori 2013-11-19 13:00:09 -08:00
commit 1c46e594dc

View File

@ -838,8 +838,9 @@ char *object_property_get_str(Object *obj, const char *name,
void object_property_set_link(Object *obj, Object *value,
const char *name, Error **errp)
{
object_property_set_str(obj, object_get_canonical_path(value),
name, errp);
gchar *path = object_get_canonical_path(value);
object_property_set_str(obj, path, name, errp);
g_free(path);
}
Object *object_property_get_link(Object *obj, const char *name,