summaryrefslogtreecommitdiffstats
path: root/src/svm/svm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/svm/svm.c')
-rw-r--r--src/svm/svm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/svm/svm.c b/src/svm/svm.c
index e3a734cbc84..afba54e74fc 100644
--- a/src/svm/svm.c
+++ b/src/svm/svm.c
@@ -721,6 +721,8 @@ svm_map_region (svm_map_region_args_t * a)
return (0);
}
+ close (svm_fd);
+
if ((uword) rp != rp->virtual_base)
{
clib_warning ("mmap botch");