regex/mlx5: fix leak on queue setup failure
authorMichael Baum <michaelba@nvidia.com>
Wed, 18 Nov 2020 17:00:11 +0000 (17:00 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 22 Nov 2020 14:05:54 +0000 (15:05 +0100)
commita165ee1ec1750ba9e21ad8f8d22a48722449390f
tree73831a9eb1bfa418e635600b9aad7086885e6c06
parent30d604bb15042208896cb3a924b49247adb9f2ed
regex/mlx5: fix leak on queue setup failure

In regex QP setup, the PMD creates some SQ objects.

When SQ object creation is failed, the previous SQ objects memory were
not freed what caused a memory leak.

Free them.

Fixes: 54fa1f6a67d7 ("regex/mlx5: add teardown for fastpath buffers")

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
drivers/regex/mlx5/mlx5_regex_control.c