Paolo Bonzini 090afdc5e6 cutils: replace strdup with g_strdup
Memory returned by get_relocated_path must be freed with
free or g_free depending on the path that the function
took; Coverity takes exception to this practice.  The
fix lets caller use g_free as is standard in QEMU.

While at it, mention the requirements on the caller in
the doc comment.

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-11-03 09:42:52 -05:00
..
2020-11-03 09:42:52 -05:00
2020-01-06 18:41:32 +04:00
2019-08-16 13:31:52 +02:00
2017-10-16 20:57:13 +03:00
2020-10-15 16:06:27 +02:00
2020-08-28 10:02:47 +01:00
2020-09-23 13:41:58 +01:00
2020-09-01 12:07:52 +02:00
2019-09-11 08:46:17 +02:00
2020-10-15 16:06:27 +02:00
2018-09-26 08:55:54 -07:00
2019-04-18 22:18:59 +02:00
2019-08-16 13:31:52 +02:00
2018-01-16 14:54:50 +01:00
2020-10-05 16:41:22 +02:00
2018-08-24 20:26:37 +02:00
2017-01-24 23:26:52 +03:00