perfcounters: fix refcounting bug, take 2
authorPaul Mackerras <paulus@samba.org>
Wed, 11 Feb 2009 12:53:19 +0000 (13:53 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 11 Feb 2009 13:08:44 +0000 (14:08 +0100)
commit4bcf349a0f90d1e69eb35c6df0fa285c886c1cd6
tree11d4d39799d72e9d3de0e6b6546f5055479f3136
parent5af759176cc767e7426f89764bde4996ebaaf419
perfcounters: fix refcounting bug, take 2

Only free child_counter if it has a parent; if it doesn't, then it
has a file pointing to it and we'll free it in perf_release.

Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_counter.c