diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-05 00:16:15 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-05 00:16:15 +0200 |
commit | f5fa05d97252b23b12749a7cd02710870c0762b0 (patch) | |
tree | e7c5e2c78a186bd66c63a7eeb61005f5ba90f7f4 /kernel | |
parent | Merge branch 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/ker... (diff) | |
parent | perf: Fix resource leak in failure path of perf_event_open() (diff) | |
download | linux-f5fa05d97252b23b12749a7cd02710870c0762b0.tar.xz linux-f5fa05d97252b23b12749a7cd02710870c0762b0.zip |
Merge branch 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
perf: Fix resource leak in failure path of perf_event_open()
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/perf_event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c index 2f3fbf84215a..3d1552d3c12b 100644 --- a/kernel/perf_event.c +++ b/kernel/perf_event.c @@ -4897,7 +4897,7 @@ err_fput_free_put_context: err_free_put_context: if (err < 0) - kfree(event); + free_event(event); err_put_context: if (err < 0) |