From 0324b5a450f8a58304e93c5d886add24ca3527bc Mon Sep 17 00:00:00 2001 From: Jesper Juhl Date: Thu, 4 Oct 2012 17:16:52 -0700 Subject: [PATCH] taskstats: cgroupstats_user_cmd() may leak on error If prepare_reply() succeeds we have allocated memory for 'rep_skb'. If nla_reserve() then subsequently fails and returns NULL we fail to release the memory we allocated, thus causing a leak. Signed-off-by: Jesper Juhl Cc: Balbir Singh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-format-patch failed