aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorOGAWA Hirofumi <[email protected]>2018-07-20 17:53:42 -0700
committerLinus Torvalds <[email protected]>2018-07-21 12:50:46 -0700
commit35033ab988c396ad7bce3b6d24060c16a9066db8 (patch)
tree52602d1e8977c4fa765150c99f9af610f7a8fe5e /tools/perf/scripts/python/export-to-sqlite.py
parent5a6964944cdfe83de849a5f748f51c983f9914ec (diff)
fat: fix memory allocation failure handling of match_strdup()
In parse_options(), if match_strdup() failed, parse_options() leaves opts->iocharset in unexpected state (i.e. still pointing the freed string). And this can be the cause of double free. To fix, this initialize opts->iocharset always when freeing. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: OGAWA Hirofumi <[email protected]> Reported-by: [email protected] Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions