Fix a batch of coverity warnings, VPP-486
Change-Id: I0379844824b4c2eb42588d0fb8e1a7eb441e923f Signed-off-by: Dave Barach <dave@barachs.net>
This commit is contained in:
@ -847,6 +847,7 @@ vl_msg_api_process_file (vlib_main_t * vm, u8 * filename,
|
||||
if (!cfgp)
|
||||
{
|
||||
vlib_cli_output (vm, "Ugh: msg id %d no trace config\n", msg_id);
|
||||
munmap (hp, file_size);
|
||||
return;
|
||||
}
|
||||
size = cfgp->size;
|
||||
@ -872,6 +873,7 @@ vl_msg_api_process_file (vlib_main_t * vm, u8 * filename,
|
||||
if (!cfgp)
|
||||
{
|
||||
vlib_cli_output (vm, "Ugh: msg id %d no trace config\n", msg_id);
|
||||
munmap (hp, file_size);
|
||||
return;
|
||||
}
|
||||
size = cfgp->size;
|
||||
|
Reference in New Issue
Block a user