aboutsummaryrefslogtreecommitdiffstats
path: root/svm
diff options
context:
space:
mode:
Diffstat (limited to 'svm')
-rw-r--r--svm/svmtool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/svm/svmtool.c b/svm/svmtool.c
index c37afbd152c..545f071e47e 100644
--- a/svm/svmtool.c
+++ b/svm/svmtool.c
@@ -164,6 +164,7 @@ svm_map_region_nolock (svm_map_region_args_t * a)
if (rp->version == 0)
{
clib_warning ("rp->version %d not %d", rp->version, SVM_VERSION);
+ munmap (rp, MMAP_PAGESIZE);
return (0);
}
/* Remap now that the region has been placed */