diff options
| author | Yunfeng Ye <[email protected]> | 2019-10-16 08:38:45 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-10-16 13:08:32 +0000 |
| commit | 1abecfcaa7bba21c9985e0136fa49836164dd8fd (patch) | |
| tree | c0c3442c82bb1a4c6a80d2a8e9388b290b77fe6f /drivers/net/xen-netback/interface.c | |
| parent | tools headers UAPI: Sync sched.h with the kernel (diff) | |
| download | kernel-1abecfcaa7bba21c9985e0136fa49836164dd8fd.tar.gz kernel-1abecfcaa7bba21c9985e0136fa49836164dd8fd.zip | |
perf kmem: Fix memory leak in compact_gfp_flags()
The memory @orig_flags is allocated by strdup(), it is freed on the
normal path, but leak to free on the error path.
Fix this by adding free(orig_flags) on the error path.
Fixes: 0e11115644b3 ("perf kmem: Print gfp flags in human readable string")
Signed-off-by: Yunfeng Ye <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Feilong Lin <[email protected]>
Cc: Hu Shiyuan <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions
