diff options
author | Georgy Borodin <bor1-go@yandex-team.ru> | 2023-10-26 01:44:12 +0200 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2024-04-02 02:39:10 +0000 |
commit | f46c5525d22cfcfd785fea13b9c439db311a1606 (patch) | |
tree | 149a00570a2c9d39a517a11fadfebbbee1a38f4b /src/plugins/lb | |
parent | b3c863eae4c1ed30ff7ad4e42afe2ffd54c1803b (diff) |
lb: fix using vip after free
fix use of vip after it was deleted
Type: fix
Fixes: 041eacc81656d2ed5bc01b96b15a7d03a1700f13
Change-Id: I5723485c5da7507fbc6c86ff6eb9f77127439f67
Signed-off-by: Georgy Borodin <bor1-go@yandex-team.ru>
Diffstat (limited to 'src/plugins/lb')
-rw-r--r-- | src/plugins/lb/lb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/lb/lb.c b/src/plugins/lb/lb.c index f8d5fe8d833..7ae1884ff31 100644 --- a/src/plugins/lb/lb.c +++ b/src/plugins/lb/lb.c @@ -373,9 +373,9 @@ void lb_garbage_collection() } vec_foreach(i, to_be_removed_vips) { - vip = &lbm->vips[*i]; - pool_put(lbm->vips, vip); - pool_free(vip->as_indexes); + vip = &lbm->vips[*i]; + pool_free (vip->as_indexes); + pool_put (lbm->vips, vip); } vec_free(to_be_removed_vips); |