summaryrefslogtreecommitdiffstats
path: root/src/vlib/physmem_funcs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vlib/physmem_funcs.h')
-rw-r--r--src/vlib/physmem_funcs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vlib/physmem_funcs.h b/src/vlib/physmem_funcs.h
index dbb8d9de5b7..0013c2f70cd 100644
--- a/src/vlib/physmem_funcs.h
+++ b/src/vlib/physmem_funcs.h
@@ -121,7 +121,8 @@ always_inline void
vlib_physmem_free (vlib_main_t * vm, vlib_physmem_region_index_t idx,
void *mem)
{
- return vm->os_physmem_free (vm, idx, mem);
+ if (mem)
+ vm->os_physmem_free (vm, idx, mem);
}
always_inline u64