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
commitd4d72acd29a2b87cfc427335a515a207d21f0742 (patch)
tree695b289fc1b6288ad05b8b326877e9dbf73488d3 /libcutils/sockets_unix.cpp
parentba0c06f84b8fa74c0204465efdf75fd631427099 (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