Merge "fix warning: Potential leak of memory pointed to by 'target'"
This commit is contained in:
committed by
Android (Google) Code Review
commit
2c728430a7
@ -455,6 +455,7 @@ parse_args(Options* options, int argc, const char** argv)
|
||||
fprintf(stderr, "Test / activity supplied without a module to build: %s\n",
|
||||
arg.c_str());
|
||||
print_usage(stderr);
|
||||
delete target;
|
||||
exit(1);
|
||||
} else if (colonPos == string::npos) {
|
||||
target->name = arg;
|
||||
|
Reference in New Issue
Block a user