aboutsummaryrefslogtreecommitdiff
path: root/os-posix.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2020-07-14 18:10:44 +0200
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2020-07-21 16:13:04 +0200
commit7da1d7dcc0c08519b92d8af579fec2e2ea9e60b1 (patch)
tree025ee4dda6974bebb1a21e91598b1e3fed961490 /os-posix.c
parent90218a9a393c7925f330e7dcc08658e2a01d3bd4 (diff)
downloadqemu-7da1d7dcc0c08519b92d8af579fec2e2ea9e60b1.zip
qemu-7da1d7dcc0c08519b92d8af579fec2e2ea9e60b1.tar.gz
qemu-7da1d7dcc0c08519b92d8af579fec2e2ea9e60b1.tar.bz2
qemu/osdep: Document os_find_datadir() return value
Document os_find_datadir() returned data must be freed. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Michael Rolnik <mrolnik@gmail.com> Tested-by: Michael Rolnik <mrolnik@gmail.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20200714164257.23330-2-f4bug@amsat.org>
Diffstat (limited to 'os-posix.c')
-rw-r--r--os-posix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/os-posix.c b/os-posix.c
index b674b20..3572db3 100644
--- a/os-posix.c
+++ b/os-posix.c
@@ -84,6 +84,9 @@ void os_setup_signal_handling(void)
* Find a likely location for support files using the location of the binary.
* When running from the build tree this will be "$bindir/../pc-bios".
* Otherwise, this is CONFIG_QEMU_DATADIR.
+ *
+ * The caller must use g_free() to free the returned data when it is
+ * no longer required.
*/
char *os_find_datadir(void)
{