X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=tools%2Fproftool.c;h=ddf870f66ee7d732a0338e28fb429185476b78b0;hb=27326c7ee269ff351bba8c2461e19f29d66b6a3a;hp=9ce7a7796e7f04b310eae4dc713d6c6a613e0acb;hpb=0e6b7a28243175ae0874d53b6e6e4eff8548d71f;p=oweals%2Fu-boot.git diff --git a/tools/proftool.c b/tools/proftool.c index 9ce7a7796e..ddf870f66e 100644 --- a/tools/proftool.c +++ b/tools/proftool.c @@ -432,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 */