diff options
Diffstat (limited to 'tools/incident_report/main.cpp')
-rw-r--r-- | tools/incident_report/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/incident_report/main.cpp b/tools/incident_report/main.cpp index 884b8e49d08d..1d8809f6f603 100644 --- a/tools/incident_report/main.cpp +++ b/tools/incident_report/main.cpp @@ -355,6 +355,7 @@ adb_incident_workaround(const char* adbSerial, const vector<string>& sections) args[argpos++] = NULL; execvp(args[0], (char*const*)args); fprintf(stderr, "execvp failed: %s\n", strerror(errno)); + free(args); return 1; } else { // parent @@ -400,6 +401,7 @@ adb_incident_workaround(const char* adbSerial, const vector<string>& sections) } } + free(buffer); return 0; } |