X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tools%2Fproftool.c;h=ddf870f66ee7d732a0338e28fb429185476b78b0;hb=04c28a7810970e404550f3510f8d9dfd90d6dc81;hp=348295198cd3d061dd8fc83baa10a6040f25e338;hpb=1a4596601fd395f3afb8f82f3f840c5e00bdd57a;p=u-boot diff --git a/tools/proftool.c b/tools/proftool.c index 348295198c..ddf870f66e 100644 --- a/tools/proftool.c +++ b/tools/proftool.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include @@ -431,9 +432,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 */