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 <dja@axtens.net>
This commit is contained in:
Daniel Axtens 2017-02-10 13:13:20 +11:00
parent 0794b31c62
commit 10e096fe09
1 changed files with 1 additions and 0 deletions

View File

@ -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;