trace: Fix for memleak in trace_alloc_list() error path
Phil Sutter
reviewerPATCH 1/1 trace: Fix for memleak in trace_alloc_list() error path
The allocated 'list_expr' may leak.
Fixes cfd768615235b ("src: add conntrack information to trace monitor mode")
Signed-off-by Phil Sutter <[email protected]>
--- src/trace.c | 1 + 1 file changed, 1 insertion(+)
src/trace.c +1 -0
@@ -258,6 +258,7 @@ static struct expr *trace_alloc_list(const struct datatype *dtype, v =mpz_get_uint32 (value);if (v ==0 ) {mpz_clear (value); +expr_free (list_expr);return NULL ; }
Signature · 1 line
2.51.0
Quoted 4 lines · Phil Sutter
The allocated '
list_expr' may leak.Fixes cfd768615235b ("src: add conntrack information to trace monitor mode")Signed-off-by Phil Sutter <[email protected]>
Reviewed-by Pablo Neira Ayuso <[email protected]>
Please, push it out, I am preparing for 1.1.5.