commit | 3329b655a12de0bcaca08b62840bd5f041da18a8 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Sat Dec 05 23:54:07 2020 +0100 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Sat Dec 05 23:54:07 2020 +0100 |
tree | 78d6601075d43c7b94dfd55f83232235a1688543 | |
parent | cc55180e75c7f590d6fb56e8c367b9381eb99e90 [diff] |
yanglint BUGFIX memory leak In case of input file with unknown format (suffix), the input handler was not correctly freed.
diff --git a/tools/lint/main_ni.c b/tools/lint/main_ni.c index 8746ba7..78da7f1 100644 --- a/tools/lint/main_ni.c +++ b/tools/lint/main_ni.c
@@ -381,6 +381,9 @@ request_expected = 1; } + } else { + ly_in_free(in, 1); + in = NULL; } }