diff options
author | George Burgess IV <gbiv@google.com> | 2017-07-12 02:54:24 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-07-12 02:54:24 +0000 |
commit | 8a4be2a6aebbdcfa576b82e544fc501112ebab35 (patch) | |
tree | bae62406949249278365168872531fcc810a2bff /cmds/app_process/app_main.cpp | |
parent | c5f089e6d57b68816b6e7201deb1af9d4132fdf5 (diff) | |
parent | cf188f664a71c135c383143a7bb8b50a44fde64a (diff) |
Merge "app_main: silence static analyzer warnings"
am: cf188f664a
Change-Id: Ibad16ec8fabb4edaaa832bc43505f81fefb10ec7
Diffstat (limited to 'cmds/app_process/app_main.cpp')
-rw-r--r-- | cmds/app_process/app_main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmds/app_process/app_main.cpp b/cmds/app_process/app_main.cpp index e56417b82fc0..1671337511b7 100644 --- a/cmds/app_process/app_main.cpp +++ b/cmds/app_process/app_main.cpp @@ -235,6 +235,9 @@ int main(int argc, char* const argv[]) for (i = 0; i < argc; i++) { if (known_command == true) { runtime.addOption(strdup(argv[i])); + // The static analyzer gets upset that we don't ever free the above + // string. Since the allocation is from main, leaking it doesn't seem + // problematic. NOLINTNEXTLINE ALOGV("app_process main add known option '%s'", argv[i]); known_command = false; continue; @@ -258,6 +261,9 @@ int main(int argc, char* const argv[]) } runtime.addOption(strdup(argv[i])); + // The static analyzer gets upset that we don't ever free the above + // string. Since the allocation is from main, leaking it doesn't seem + // problematic. NOLINTNEXTLINE ALOGV("app_process main add option '%s'", argv[i]); } |