diff options
author | Xie XiuQi <[email protected]> | 2020-05-21 21:32:17 +0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2020-05-28 10:03:27 -0300 |
commit | 07e9a6f538cbeecaf5c55b6f2991416f873cdcbd (patch) | |
tree | f26e612257e967aafae77c231ec840bfeccfe56e /drivers/usb/cdns3/cdns3-trace.h | |
parent | 51a09d8f9aa05a9dc56baaec3f160df2802b0f7b (diff) |
perf util: Fix memory leak of prefix_if_not_in
Need to free "str" before return when asprintf() failed to avoid memory
leak.
Signed-off-by: Xie XiuQi <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Hongbo Yao <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Li Bin <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.h')
0 files changed, 0 insertions, 0 deletions