qom: Document object_get_canonical_path() returns malloced string
authorMarkus Armbruster <armbru@redhat.com>
Tue, 14 Jul 2020 16:02:01 +0000 (18:02 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 21 Jul 2020 14:23:43 +0000 (16:23 +0200)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200714160202.3121879-5-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
include/qom/object.h

index 55d925d2c830c2a55db382ab8ae2aa547d033f45..0f3a60617c2a1a4cdcf6bcc3b3c2ceddc7900271 100644 (file)
@@ -1467,8 +1467,9 @@ const char *object_get_canonical_path_component(const Object *obj);
 /**
  * object_get_canonical_path:
  *
- * Returns: The canonical path for a object.  This is the path within the
- * composition tree starting from the root.
+ * Returns: The canonical path for a object, newly allocated.  This is
+ * the path within the composition tree starting from the root.  Use
+ * g_free() to free it.
  */
 char *object_get_canonical_path(const Object *obj);