diff options
author | Sha Zhengju <handai.szj@taobao.com> | 2012-05-11 00:01:45 +0400 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2012-05-31 03:43:51 +0400 |
commit | b07291bbba3a0ce31a2a35b34b1e3e79c22e4b5b (patch) | |
tree | d5af6df60e467ac043eeb55583d74c55b4f4735c /net/rds/af_rds.c | |
parent | 2693a093ac93a63749fd595cf4569495014ff1b3 (diff) | |
download | linux-b07291bbba3a0ce31a2a35b34b1e3e79c22e4b5b.tar.xz |
memcg: free spare array to avoid memory leak
commit 8c7577637ca31385e92769a77e2ab5b428e8b99c upstream.
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'net/rds/af_rds.c')
0 files changed, 0 insertions, 0 deletions