summaryrefslogtreecommitdiff
path: root/libcutils/sockets_unix.cpp
diff options
context:
space:
mode:
authorJin Qian <jinqian@google.com>2016-11-03 13:36:35 -0700
committerJin Qian <jinqian@google.com>2016-11-08 20:07:31 +0000
commit905948ed74f60cb14940e96819f6f95aeda98f86 (patch)
tree695b289fc1b6288ad05b8b326877e9dbf73488d3 /libcutils/sockets_unix.cpp
parenta61c48d5fd59e6077219750a28f63be28e05a40b (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
Diffstat (limited to 'libcutils/sockets_unix.cpp')
0 files changed, 0 insertions, 0 deletions