From: Thomas Weißschuh Date: Tue, 28 Apr 2026 22:08:09 +0000 (+0200) Subject: libsmartcols: drop superfluous call yo yylex_init() X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=08087a7204fd1e8317b2b9194d7e37b966d86996;p=thirdparty%2Futil-linux.git libsmartcols: drop superfluous call yo yylex_init() The lexer is already initialized with yylex_init_extra(), making the call to yylex_init() superfluous. Furthermore this is leaking memory. Signed-off-by: Thomas Weißschuh --- diff --git a/libsmartcols/src/filter.c b/libsmartcols/src/filter.c index 2ce28ebd7..011b21c22 100644 --- a/libsmartcols/src/filter.c +++ b/libsmartcols/src/filter.c @@ -195,7 +195,6 @@ int scols_filter_parse_string(struct libscols_filter *fltr, const char *str) if (!fltr->src) return -errno; - yylex_init(&sc); yylex_init_extra(fltr, &sc); yyset_in(fltr->src, sc);