vppinfra: fix coverity issue 205691 in pmalloc 19/28219/2
authorAndrew Yourtchenko <[email protected]>
Mon, 18 Nov 2019 10:23:54 +0000 (10:23 +0000)
committerDave Wallace <[email protected]>
Wed, 12 Aug 2020 01:22:20 +0000 (01:22 +0000)
commitcf758ecb71e1337f0d1fd5e9fd4744b263f01f25
treeb75c12c86ed605a1e3bb4385d679fdbb52a60e0e
parenta8f870ac34730540cde525e0394191dcae1f5203
vppinfra: fix coverity issue 205691 in pmalloc

set the address to MMAP_FAILED if mmap has failed,
so that we do not attempt to free it in the error
handling path.

Change-Id: I6e6b51a365fb68086dc20aa40a676a36af59a3ba
Type: fix
Signed-off-by: Andrew Yourtchenko <[email protected]>
(cherry picked from commit 9ce35233658d6c19a4458ec7e728b6ee75fd3ace)
src/vppinfra/pmalloc.c