]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libsmartcols: (filter) fix regex deallocation
authorKarel Zak <kzak@redhat.com>
Mon, 9 Oct 2023 11:56:24 +0000 (13:56 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 20 Nov 2023 21:25:47 +0000 (22:25 +0100)
Reported-by: Thomas Weißschuh <thomas@t-8ch.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/src/filter-param.c

index 673c9d90175e9a9ae8309a6a6f52094f78a092af..81cbb2a60a26378452fc0a63aa6a7c71da0939d2 100644 (file)
@@ -156,6 +156,7 @@ static void param_reset_data(struct filter_param *n)
        if (n->re) {
                regfree(n->re);
                free(n->re);
+               n->re = NULL;
        }
 }