X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tools%2Fproftool.c;h=c1803fa78a761b7770af7a031442f1e057c4001d;hb=3f0492f20755b9cd3b32ea7253169655489bab63;hp=348295198cd3d061dd8fc83baa10a6040f25e338;hpb=8b485ba12b0defa0c4ed3559789250238f8331a8;p=u-boot diff --git a/tools/proftool.c b/tools/proftool.c index 348295198c..c1803fa78a 100644 --- a/tools/proftool.c +++ b/tools/proftool.c @@ -1,7 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2013 Google, Inc - * - * SPDX-License-Identifier: GPL-2.0+ */ /* Decode and dump U-Boot profiling information */ @@ -16,6 +15,7 @@ #include #include #include +#include #include #include @@ -431,9 +431,10 @@ static int read_trace_config(FILE *fin) err = regcomp(&line->regex, tok, REG_NOSUB); if (err) { + int r = regex_report_error(&line->regex, err, + "compile", tok); free(line); - return regex_report_error(&line->regex, err, "compile", - tok); + return r; } /* link this new one to the end of the list */