aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJohannes Thumshirn <[email protected]>2016-09-30 14:39:17 +0200
committerKalle Valo <[email protected]>2016-11-09 03:36:44 +0200
commit9afdd6128c39f42398041bb2e017d8df0dcebcd1 (patch)
tree3de11a87269d91bff7fe50f1a14a14edd8b4ef4c /tools/perf/scripts/python
parent424342ff0e033f5965a446fc6e37aba2c9cee248 (diff)
cw1200: Don't leak memory if krealloc failes
The call to krealloc() in wsm_buf_reserve() directly assigns the newly returned memory to buf->begin. This is all fine except when krealloc() failes we loose the ability to free the old memory pointed to by buf->begin. If we just create a temporary variable to assign memory to and assign the memory to it we can mitigate the memory leak. Signed-off-by: Johannes Thumshirn <[email protected]> Cc: Johannes Berg <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions