Module: xenomai-forge
Branch: next
Commit: 1250012103de3d14d0a68448b65fd0994c21bd5e
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=1250012103de3d14d0a68448b65fd0994c21bd5e

Author: Philippe Gerum <r...@xenomai.org>
Date:   Fri Jan 10 16:28:08 2014 +0100

cobalt/posix/sem: fix error path on failed creation

---

 kernel/cobalt/posix/sem.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cobalt/posix/sem.c b/kernel/cobalt/posix/sem.c
index dc15516..be336d4 100644
--- a/kernel/cobalt/posix/sem.c
+++ b/kernel/cobalt/posix/sem.c
@@ -172,7 +172,7 @@ cobalt_sem_init_inner(const char *name, struct __shadow_sem 
*sm,
 
   err_lock_put:
        xnlock_put_irqrestore(&nklock, s);
-       xnheap_free(&sys_ppd->sem_heap, sem->datp);
+       xnheap_free(&sys_ppd->sem_heap, datp);
   err_free_sem:
        xnfree(sem);
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to