summaryrefslogtreecommitdiff
path: root/tools/incident_report
diff options
context:
space:
mode:
authorGeorge Burgess IV <gbiv@google.com>2018-06-05 19:56:22 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-06-05 19:56:22 -0700
commit02bf04ac0126149da105159cfa41aaf2bfc0cf5f (patch)
tree8018397a38a659cf09a4308cdb0465ef54c7769f /tools/incident_report
parent3b09f97552593ca1f4404164a4c89ff23bede82c (diff)
parentbc49cb846073b0ac87ec423af8bfbb93de52a302 (diff)
Merge "Fix a 'memory leak'" am: 38e7338d92
am: bc49cb8460 Change-Id: I3ecf0ecdf20bb61bda76fff547f920040ded47d6
Diffstat (limited to 'tools/incident_report')
-rw-r--r--tools/incident_report/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/incident_report/main.cpp b/tools/incident_report/main.cpp
index 302d7395f3e4..be33afcf0f38 100644
--- a/tools/incident_report/main.cpp
+++ b/tools/incident_report/main.cpp
@@ -549,6 +549,7 @@ main(int argc, char** argv)
args[argpos++] = NULL;
execvp(args[0], (char*const*)args);
fprintf(stderr, "execvp failed: %s\n", strerror(errno));
+ free(args);
return 0;
} else {
// parent