diff options
| author | Dan Carpenter <[email protected]> | 2010-07-22 23:38:45 -0700 |
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2010-07-22 23:39:16 -0700 |
| commit | f1cba532e8c1001a39650379aa7e04ad974d0592 (patch) | |
| tree | 9c663e053d1a9c35d260de1b00a141e6b9dd073f /tools/perf/util/scripting-engines/trace-event-perl.c | |
| parent | 0fffed27f92d9d7a34de9fe017b7082b5958bb93 (diff) | |
Input: adxl34x - fix leak and use after free
These are a couple smatch issues. In the original code, if only one of
the allocation fails we leak the other variable so we should goto
out_free_mem.
Also there was a use after free if debugging was enabled and so I moved
the kfree() down a line.
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions