summaryrefslogtreecommitdiff
path: root/cmds/app_process/app_main.cpp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2017-07-12 02:43:14 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-07-12 02:43:14 +0000
commitcf188f664a71c135c383143a7bb8b50a44fde64a (patch)
tree2c62b25011c66c53e61e64cf76bb3ba9d0b58c88 /cmds/app_process/app_main.cpp
parent3eff26449f9bb2be7d69ec2f13086371a8ab9ba8 (diff)
parentc29844d07236c5569663a9e0406943652b674959 (diff)
Merge "app_main: silence static analyzer warnings"
Diffstat (limited to 'cmds/app_process/app_main.cpp')
-rw-r--r--cmds/app_process/app_main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmds/app_process/app_main.cpp b/cmds/app_process/app_main.cpp
index 0ea141c292dd..752c2a8d7400 100644
--- a/cmds/app_process/app_main.cpp
+++ b/cmds/app_process/app_main.cpp
@@ -233,6 +233,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;
@@ -256,6 +259,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]);
}