From 10e096fe097a489eec41bad120f5b5e52fa4b61c Mon Sep 17 00:00:00 2001 From: Daniel Axtens Date: Fri, 10 Feb 2017 13:13:20 +1100 Subject: ISA-L: free matrix on exit isa_l_common_init allocates desc->matrix, but this isn't freed in isa_l_exit. Instead, the entire isa_l_desc structure is freed, thus leaking the memory. Explicitly free desc->matrix. Change-Id: Ibf672d1a309498591b87d739632a90a1b3704f7e Signed-off-by: Daniel Axtens --- src/backends/isa-l/isa_l_common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/backends/isa-l/isa_l_common.c b/src/backends/isa-l/isa_l_common.c index 07deb13..b7fb05e 100644 --- a/src/backends/isa-l/isa_l_common.c +++ b/src/backends/isa-l/isa_l_common.c @@ -444,6 +444,7 @@ int isa_l_exit(void *desc) isa_l_desc = (isa_l_descriptor*) desc; + free(isa_l_desc->matrix); free(isa_l_desc); return 0; -- cgit v1.2.1