diff options
| author | Axel Lin <[email protected]> | 2010-08-09 17:20:56 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2010-08-09 20:45:09 -0700 |
| commit | 1986aaf828ac8398b3d8d9b4151b08c840414ffe (patch) | |
| tree | ce5b6e92bab2e8f706ad2c9e08ac826bc5c215a2 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | ea98eed9bcb62d1319db8b1210712c6a110a886c (diff) | |
edd: fix possible memory leak in edd_init() error path
The error may happen at any iteration of the for loop, this patch properly
unregisters already registed edd_devices in error path.
[[email protected]: remove unneeded NULL test]
Signed-off-by: Axel Lin <[email protected]>
Cc: Stephen Hemminger <[email protected]>
Cc: Jens Axboe <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions