qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] configure: Fixes ncursesw detection under msys2/mingw and en


From: Yonggang Luo
Subject: Re: [PATCH] configure: Fixes ncursesw detection under msys2/mingw and enable curses
Date: Mon, 7 Sep 2020 12:20:24 +0800



On Sun, Sep 6, 2020 at 11:28 AM Richard Henderson <richard.henderson@linaro.org> wrote:
On 9/5/20 1:42 PM, Yonggang Luo wrote:
> +    nativecharset_to_ucs2 = iconv_open("UCS-2", g_get_codeset());

g_get_codeset():
"a newly allocated string containing the name of the character set. This string
must be freed with g_free()."

You need to plug the memory leak.

It's probably worth fixing the mistake in which we call this function four
times from the same function.
Done with autofree 


r~


--
         此致

罗勇刚
Yours
    sincerely,
Yonggang Luo

reply via email to

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