mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
lib/slre: Fix memory leak if regex compilation fails
Signed-off-by: Francois Berder <fberder@outlook.fr>
This commit is contained in:
committed by
Tom Rini
parent
9f0588a1a9
commit
891b178c57
@@ -686,6 +686,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
if (!slre_compile(&slre, argv[1])) {
|
||||
(void) fclose(fp);
|
||||
fprintf(stderr, "Error compiling slre: %s\n", slre.err_str);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user