]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memcg: free spare array to avoid memory leak
authorSha Zhengju <handai.szj@taobao.com>
Thu, 3 May 2012 05:43:10 +0000 (15:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:11 +0000 (15:46 +1000)
commita2733b9275c4f1de7e510365f0f967a92f757411
treef30010f545ccabb645923680810bba861b6fa843
parentb4665b2fce0c7a4e5328da6aec1cc72e2872a178
memcg: free spare array to avoid memory leak

When the last event is unregistered, there is no need to keep the spare
array anymore.  So free it to avoid memory leak.

Signed-off-by: Sha Zhengju <handai.szj@taobao.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Reviewed-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c