Module: xenomai-head
Branch: master
Commit: 4cd1089f62f64ec0923354aaee4d91aa074373ec
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=4cd1089f62f64ec0923354aaee4d91aa074373ec

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Tue Aug 18 00:36:51 2009 +0200

posix: fix shm leak

---

 ksrc/skins/posix/syscall.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ksrc/skins/posix/syscall.c b/ksrc/skins/posix/syscall.c
index ec0c102..898cc91 100644
--- a/ksrc/skins/posix/syscall.c
+++ b/ksrc/skins/posix/syscall.c
@@ -2717,6 +2717,8 @@ static int __munmap_epilogue(struct pt_regs *regs)
        xnlock_put_irqrestore(&pse51_assoc_lock, s);
 
        err = munmap(umap->kaddr, len);
+       if (!err)
+               xnfree(umap);
 
        return !err ? 0 : -thread_get_errno();
 }


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to