qom: Fix memory leak in object_property_set_link()

Save the result of the call to object_get_cannonical_path()
so we can free it.

Cc: qemu-stable@nongnu.org
Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Reviewed-by: Amos Kong <akong@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>