aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorGargi Sharma <[email protected]>2017-02-22 21:08:21 +0530
committerGreg Kroah-Hartman <[email protected]>2017-03-06 09:17:01 +0100
commitfea3860d7d69b0a82e0b96617258ffaf0ff250d4 (patch)
tree426f0727625562d975dce59ce4ad236026818883 /tools/perf/scripts/python/netdev-times.py
parent95ee706e9a6e3b18d8bf37cbb238e55ba37b37a7 (diff)
staging: greybus: loopback_test: fix device-name leak
All the device names were being always leaked. Also, illegal free was being called upon namelist[n] which was coincidentally NULL. The pointer to dirent structures must be individually freed before freeing the pointer array. Coccinelle Script: @@ expression arr,ex1,ex2; @@ for(ex1 = 0; ex1 < ex2; ex1++) { <... arr[ - ex2 + ex1 ] ...> } Signed-off-by: Gargi Sharma <[email protected]> Reviewed by: Johan Hovold <[email protected]> Acked-by: Julia Lawall <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions