diff options
| author | George Burgess IV <gbiv@google.com> | 2018-02-17 21:43:55 -0800 |
|---|---|---|
| committer | Josh Gao <jmgao@google.com> | 2018-02-19 01:05:56 -0800 |
| commit | cb2449f851eed55770a1621d0f9f880bed9ada68 (patch) | |
| tree | 6167eb98a91d0d3f79351da298c9d729fbd122f5 /trusty/coverage/coverage_test.cpp | |
| parent | 277a95bfef00baffbe66fef10e3828d827e16641 (diff) | |
Fix a memory leak
If create_service_thread fails, we'll leak `arg`.
This fixes a static analyzer complaint:
system/core/adb/services.cpp:298:13: warning: Potential leak of memory
pointed to by 'arg'
Bug: None
Test: Reran the static analyzer. No more complaints about this leak.
Change-Id: I5aec7fd78f2cc775b650501b02bdf0039d1647ca
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions
