Re: [PATCH] compile-i386.c: fix a memory leak in sort_array()

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

 



On Sun, Sep 10, 2017 at 8:02 AM, Martin Kepplinger <martink@xxxxxxxxx> wrote:
> sort_array() locally allocates a list it. Let's free it before returning
> in order to avoid memory to leak.
>
> Signed-off-by: Martin Kepplinger <martink@xxxxxxxxx>

Applied. While I am reading the code in that function, I notice
there is expression_list_size() which can get the size of the
expression list.

There is also a sort_list() in sort.c which can simplify sort_array().

Chris
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux