api: fix dead client scan heap issue 05/23505/2
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>
Thu, 7 Nov 2019 15:00:57 +0000 (16:00 +0100)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Fri, 20 Dec 2019 09:15:20 +0000 (09:15 +0000)
commit2eb13c295427405208ad9d13d562d2a084a46da7
tree24892c0406c9b377555977d7d88fc7c4a115a9e3
parent814e898eba5b3c52515b878f673fc6aa60063ad9
api: fix dead client scan heap issue

Type: fix

On multiworker setup when an app client dies, the
vec_reset_length call fails the assert in
clib_mem_is_heap_object. Same thing might happen for
the clib_warnings

Change-Id: I369f9d2dbe60407c84994a4e8d25f6df7848ca93
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
(cherry picked from commit 5ed3fe3dd4320a7b4080f18de32ef491b5a1c7f0)
src/vlibmemory/memory_api.c