commit | 905948ed74f60cb14940e96819f6f95aeda98f86 | [log] [tgz] |
---|---|---|
author | Jin Qian <jinqian@google.com> | Thu Nov 03 13:36:35 2016 -0700 |
committer | Jin Qian <jinqian@google.com> | Tue Nov 08 20:07:31 2016 +0000 |
tree | 695b289fc1b6288ad05b8b326877e9dbf73488d3 | |
parent | a61c48d5fd59e6077219750a28f63be28e05a40b [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 Change-Id: Iadb5cf343437a1e27e588ee067b084897633ea07 Merged-In: I937a68c01c223230932c932bffdd35da6503c3c4