]> git.sur5r.net Git - u-boot/blobdiff - tools/proftool.c
Merge branch 'master' of git://git.denx.de/u-boot-sunxi
[u-boot] / tools / proftool.c
index 9ce7a7796e7f04b310eae4dc713d6c6a613e0acb..c1803fa78a761b7770af7a031442f1e057c4001d 100644 (file)
@@ -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 */
@@ -432,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 */