qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] tests: fix test-cutils leaks


From: Marc-André Lureau
Subject: Re: [PATCH] tests: fix test-cutils leaks
Date: Tue, 21 Jun 2022 15:49:50 +0400

Hi

On Tue, Jun 21, 2022 at 3:46 PM Peter Maydell <peter.maydell@linaro.org> wrote:
On Tue, 21 Jun 2022 at 09:36, <marcandre.lureau@redhat.com> wrote:
>
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> Reported by ASAN.
>
> Fixes commit cfb34489 ("cutils: add functions for IEC and SI prefixes").
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>

g_autofree would be neater, but this works, so:
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>


sadly, not really, since you have to call g_free() before new assignments... (yes it makes me sad too :)


--
Marc-André Lureau

reply via email to

[Prev in Thread] Current Thread [Next in Thread]