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> --- compile-i386.c | 1 + 1 file changed, 1 insertion(+) diff --git a/compile-i386.c b/compile-i386.c index 44b72ec..e4d3f27 100644 --- a/compile-i386.c +++ b/compile-i386.c @@ -1048,6 +1048,7 @@ static void sort_array(struct expression *expr) *THIS_ADDRESS(entry) = list[i++]; } END_FOR_EACH_PTR(entry); + free(list); } static void emit_array(struct symbol *sym) -- 2.11.0 -- 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