aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorAlexey Khoroshilov <[email protected]>2012-08-08 10:58:00 +0100
committerJonathan Cameron <[email protected]>2012-08-16 20:24:33 +0100
commit1c795ebd00042b3a5c97e049fd1c08763714a7a8 (patch)
treeb54a55288bec44e39acdd6f6282f6b4d568afb23 /tools/perf/util/scripting-engines/trace-event-python.c
parent8857df3aceb7a8eb7558059b7da109e41dd1fb95 (diff)
iio/adjd_s311: Fix potential memory leak in adjd_s311_update_scan_mode()
Do not leak memory by updating pointer with potentially NULL realloc return value. There is no need to preserve data in the buffer, so replace krealloc() by kfree()-kmalloc() pair. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <[email protected]> Acked-by: Peter Meerwald <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions