Please sign in to comment.
genetlink: Fix a memory leak on error path
In genl_register_family(), when idr_alloc() fails, we forget to free the memory we possibly allocate for family->attrbuf. Reported-by: Hulk Robot <email@example.com> Fixes: 2ae0f17 ("genetlink: use idr to track families") Signed-off-by: YueHaibing <firstname.lastname@example.org> Reviewed-by: Kirill Tkhai <email@example.com> Signed-off-by: David S. Miller <firstname.lastname@example.org>
- Loading branch information...