Re: [PATCH] net/ipv4: Eliminate kstrdup memory leak
From: David Miller
Date: Fri Aug 27 2010 - 22:32:24 EST
From: Julia Lawall <julia@xxxxxxx>
Date: Fri, 27 Aug 2010 21:47:43 +0200
> The string clone is only used as a temporary copy of the argument val
> within the while loop, and so it should be freed before leaving the
> function. The call to strsep, however, modifies clone, so a pointer to the
> front of the string is kept in saved_clone, to make it possible to free it.
>
> The sematic match that finds this problem is as follows:
> (http://coccinelle.lip6.fr/)
...
> Signed-off-by: Julia Lawall <julia@xxxxxxx>
Applied, thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/