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()
This commit is contained in:
commit
f5fa05d972
1 changed files with 1 additions and 1 deletions
|
@ -4897,7 +4897,7 @@ SYSCALL_DEFINE5(perf_event_open,
|
|||
|
||||
err_free_put_context:
|
||||
if (err < 0)
|
||||
kfree(event);
|
||||
free_event(event);
|
||||
|
||||
err_put_context:
|
||||
if (err < 0)
|
||||
|
|
Loading…
Reference in a new issue