On 11/2/20 7:22 PM, Paolo Bonzini wrote:
> 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.mayd...@linaro.org>
> Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
> ---
>  include/qemu/cutils.h | 1 +
>  util/cutils.c         | 2 +-
>  2 files changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <phi...@redhat.com>


Reply via email to