X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tools%2Fproftool.c;h=ddf870f66ee7d732a0338e28fb429185476b78b0;hb=dfe461d6b5a196c6f13ab0b4ccbeb1b16aa22cf5;hp=348295198cd3d061dd8fc83baa10a6040f25e338;hpb=326ea986ac150acdc7656d57fca647db80b50158;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 */