[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100827.193214.71098473.davem@davemloft.net>
Date: Fri, 27 Aug 2010 19:32:14 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: julia@...u.dk
Cc: kernel-janitors@...r.kernel.org, kuznet@....inr.ac.ru,
pekkas@...core.fi, jmorris@...ei.org, yoshfuji@...ux-ipv6.org,
kaber@...sh.net, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net/ipv4: Eliminate kstrdup memory leak
From: Julia Lawall <julia@...u.dk>
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@...u.dk>
Applied, thanks!
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists