From 775d4168c628ef3ecb65cd7e0cc767cc2dd0f893 Mon Sep 17 00:00:00 2001 From: Pier-Olivier Thibault Date: Tue, 22 Jul 2014 15:23:56 -0400 Subject: [PATCH] Unmap both arrays --- rpio.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rpio.go b/rpio.go index f2c9655..44e2b3a 100644 --- a/rpio.go +++ b/rpio.go @@ -304,5 +304,6 @@ func Open() (err error) { func Close() { memlock.Lock() syscall.Munmap(mem8) + syscall.Munmap(mem) memlock.Unlock() }