summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorGeorge Burgess IV <gbiv@google.com>2017-01-24 16:30:22 -0800
committerGeorge Burgess IV <gbiv@google.com>2017-03-01 00:08:04 +0000
commit18f307aed32d7a74a088fd871b90a5b9be86d8fa (patch)
tree32709f2754e07bc853f93a6bbf42de90ffcf729f /tools/aapt2/diff/Diff.cpp
parent01f2e676481cf434a390029e361f77357e47d61f (diff)
Fix memory-leak warnings from the static analyzer
Warnings: frameworks/base/core/jni/android_view_InputChannel.cpp:145:5: warning: Potential memory leak jobject serverChannelObj = android_view_InputChannel_createInputChannel(env, ^~~~~~~~~~~~~~~~~~~~~~~~ frameworks/base/core/jni/android_view_InputChannel.cpp:151:5: warning: Potential memory leak jobject clientChannelObj = android_view_InputChannel_createInputChannel(env, ^~~~~~~~~~~~~~~~~~~~~~~~ The warnings were complaining about that we might leak nativeInputChannel, in android_view_InputChannel_createInputChannel, since we're allocating it as an arg and not always putting it somewhere. Bug: None Test: Builds without warnings Change-Id: I62163adee5d420ad78c8d4c74aafefc8a58f765b
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions