diff options
author | Gen Zhang <[email protected]> | 2019-05-23 08:34:52 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2019-05-24 10:04:44 +0200 |
commit | 84ecc2f6eb1cb12e6d44818f94fa49b50f06e6ac (patch) | |
tree | e83742a61aa97de1836e24e3b88dd3b562967fe2 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 06aaa3d066db87e8478522d910285141d44b1e58 (diff) |
consolemap: Fix a memory leaking bug in drivers/tty/vt/consolemap.c
In function con_insert_unipair(), when allocation for p2 and p1[n]
fails, ENOMEM is returned, but previously allocated p1 is not freed,
remains as leaking memory. Thus we should free p1 as well when this
allocation fails.
Signed-off-by: Gen Zhang <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions