diff options
author | Chris Boot <[email protected]> | 2012-12-11 21:58:48 +0000 |
---|---|---|
committer | Nicholas Bellinger <[email protected]> | 2012-12-12 21:17:25 -0800 |
commit | e1fe2060d7e8f58a69374135e32e90f0bb79a7fd (patch) | |
tree | 496e995322db60717dbf31ca84f9d8753f125479 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 37419d674ca99739dbee5ada28b50aacc29c94e1 (diff) |
sbp-target: fix error path in sbp_make_tpg()
If the TPG memory is allocated successfully, but we fail further along
in the function, a dangling pointer to freed memory is left in the TPort
structure. This is mostly harmless, but does prevent re-trying the
operation without first removing the TPort altogether.
Reported-by: Chen Gang <[email protected]>
Signed-off-by: Chris Boot <[email protected]>
Cc: Andy Grover <[email protected]>
Cc: Nicholas A. Bellinger <[email protected]>
Cc: [email protected]
Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions