Skip to content
Snippets Groups Projects
Commit 2cfa849e authored by Yunlian Jiang's avatar Yunlian Jiang
Browse files

fix warning: Potential leak of memory pointed to by 'target'

Bug: None
Test: The warning is gone.
Change-Id: I013fad1d53b37ae3d89846c70f0b10a67a9d04bb
parent 68a9dd8c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment