Re: [patch 2/2 -next] hid-lg4ff: add a kfree() to an error path

Started by Dan Carpenter on Aug 18, 2011

open the first message on its own page

Message details and related content
On Thu, Aug 18, 2011 at 07:59:32PM +0530, Zic Rim wrote:
There is no leak here. If kzalloc fails , it means memory is not allocated.
It is wrong to free something that is not allocated .
No.  The entry allocation succeeded and the entry->device_id
allocation failed.  Look again.

regards,
dan carpenter
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help