commit | c27550510d9f86c6a444940f4707c7c99c31c082 | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Sat Feb 17 21:43:55 2018 -0800 |
committer | Josh Gao <jmgao@google.com> | Mon Feb 19 01:05:56 2018 -0800 |
tree | 6167eb98a91d0d3f79351da298c9d729fbd122f5 | |
parent | 9fef6fffa640123e9c9f490a46a7f8aa473a6166 [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