diff options
Diffstat (limited to 'vlib-api/vlibapi')
-rw-r--r-- | vlib-api/vlibapi/api_shared.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vlib-api/vlibapi/api_shared.c b/vlib-api/vlibapi/api_shared.c index c62ac5b1..c133922c 100644 --- a/vlib-api/vlibapi/api_shared.c +++ b/vlib-api/vlibapi/api_shared.c @@ -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; |