8000 lsfd: fix memory leak in append_filter_expr() · util-linux/util-linux@e8cb61f · GitHub
[go: up one dir, main page]

Skip to content

Commit e8cb61f

Browse files
committed
lsfd: fix memory leak in append_filter_expr()
Signed-off-by: Karel Zak <kzak@redhat.com> (cherry picked from commit 53bcec4)
1 parent 192d8aa commit e8cb61f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

misc-utils/lsfd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,6 +1591,8 @@ static void append_filter_expr(char **a, const char *b, bool and)
15911591
xstrappend(a, "or(");
15921592
xstrappend(a, b);
15931593
xstrappend(a, ")");
1594+
1595+
free(tmp);
15941596
}
15951597

15961598
static struct lsfd_filter *new_filter(const char *expr, bool debug, const char *err_prefix, struct lsfd_control *ctl)

0 commit comments

Comments
 (0)
0