commit | 8b7eb7bb2a9cff199cfd65641521a31119cd7179 | [log] [tgz] |
---|---|---|
author | Jin Qian <jinqian@google.com> | Thu Nov 03 13:36:35 2016 -0700 |
committer | bowgotsai <bowgotsai@google.com> | Fri Jan 20 18:01:49 2017 +0800 |
tree | 182c04b4110894d6b2114a71f2809e623ece1f60 | |
parent | 89e99f9e0e28455779db118136a2f9e26adad520 [diff] |
fs_mgr: fix clang static analyzer warning Pointer from strdup is lost hence triggers mem leak warning from clang, since ptr returned from basename may not point to start of duplicated string any more. Switch to use gnu version of basename which doesn't modify input string so that strdup is no longer necessary. Bug: 27126348 Test: compile Change-Id: I937a68c01c223230932c932bffdd35da6503c3c4