vppinfra: fix coverity issue 205691 in pmalloc 98/23498/3
authorAndrew Yourtchenko <ayourtch@gmail.com>
Mon, 18 Nov 2019 10:23:54 +0000 (10:23 +0000)
committerDave Barach <openvpp@barachs.net>
Fri, 22 Nov 2019 17:38:15 +0000 (17:38 +0000)
commit9ce35233658d6c19a4458ec7e728b6ee75fd3ace
tree77ff2e9d3cd4af5ca7f07a00e0fd37062e6f340f
parent418ebb711e7f32a160f824cee7de0122076d216a
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 <ayourtch@gmail.com>
src/vppinfra/pmalloc.c