Markus Armbruster
7a309cc95b
qom: Change object_get_canonical_path_component() not to malloc
...
object_get_canonical_path_component() returns a malloced copy of a
property name on success, null on failure.
19 of its 25 callers immediately free the returned copy.
Change object_get_canonical_path_component() to return the property
name directly. Since modifying the name would be wrong, adjust the
return type to const char *.
Drop the free from the 19 callers become simpler, add the g_strdup()
to the other six.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200714160202.3121879-4-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
2020-07-21 16:23:43 +02:00
..
2020-07-10 15:18:08 +02:00
2020-01-24 20:59:15 +01:00
2020-03-12 16:27:33 +00:00
2020-03-12 16:27:33 +00:00
2020-03-30 13:18:58 +01:00
2020-03-12 16:27:33 +00:00
2020-03-12 16:27:33 +00:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2019-08-16 13:31:52 +02:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2019-08-16 13:31:53 +02:00
2020-05-11 11:00:26 +01:00
2020-07-10 15:18:08 +02:00
2019-08-16 13:31:52 +02:00
2020-06-15 22:05:28 +02:00
2020-07-11 11:02:05 +02:00
2020-07-10 15:18:08 +02:00
2020-06-05 17:23:09 +01:00
2020-07-10 15:18:08 +02:00
2019-08-16 13:31:52 +02:00
2019-10-25 13:09:27 +01:00
2019-08-16 13:37:36 +02:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-05-15 07:07:58 +02:00
2020-06-15 22:05:28 +02:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:37:36 +02:00
2019-08-16 13:31:52 +02:00
2020-06-09 09:21:10 +02:00
2019-08-16 13:31:52 +02:00
2019-08-21 13:24:01 +02:00
2020-06-16 10:32:28 +01:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:37:36 +02:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:52 +02:00
2019-06-12 13:18:33 +02:00
2020-01-17 14:27:16 +00:00
2020-02-21 16:07:00 +00:00
2020-07-10 15:18:08 +02:00
2020-01-24 20:59:15 +01:00
2020-07-21 16:23:43 +02:00
2020-07-11 11:02:05 +02:00
2020-06-26 10:13:52 +01:00
2020-07-11 11:02:05 +02:00
2020-07-03 16:59:45 +01:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:52 +02:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2019-08-16 13:31:52 +02:00
2020-01-24 20:59:15 +01:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:52 +02:00
2020-03-16 22:07:42 +01:00
2019-08-16 13:31:52 +02:00
2018-01-22 09:46:18 +01:00
2020-02-20 14:47:08 +01:00
2020-07-10 15:18:08 +02:00
2020-01-24 20:59:15 +01:00
2020-06-09 19:01:56 +02:00
2020-01-24 20:59:15 +01:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:37:36 +02:00
2019-06-12 13:18:33 +02:00
2020-01-17 14:09:29 +00:00
2020-01-23 15:34:04 +00:00
2020-07-10 15:18:08 +02:00
2013-04-08 18:13:16 +02:00
2020-07-10 15:18:08 +02:00
2020-07-11 11:02:05 +02:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2019-10-15 18:18:08 -03:00
2020-04-30 15:35:41 +01:00
2019-08-16 13:31:53 +02:00