summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorGen Zhang <blackgod016574@gmail.com>2019-05-23 08:34:52 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-24 10:04:44 +0200
commit84ecc2f6eb1cb12e6d44818f94fa49b50f06e6ac (patch)
treee83742a61aa97de1836e24e3b88dd3b562967fe2 /tools/perf/scripts/python/export-to-postgresql.py
parent06aaa3d066db87e8478522d910285141d44b1e58 (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 <blackgod016574@gmail.com> Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions