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-09-23 13:41:58 +01:00
2020-10-15 16:06:27 +02:00
2020-10-29 06:37:24 +01:00
2020-09-22 15:42:23 +01:00