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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Sep 22 09:34:49 2014 +0200

cobalt/posix/mq: fix error path in failed init

---

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

diff --git a/kernel/cobalt/posix/mqueue.c b/kernel/cobalt/posix/mqueue.c
index 9727bed..b1ce1d2 100644
--- a/kernel/cobalt/posix/mqueue.c
+++ b/kernel/cobalt/posix/mqueue.c
@@ -334,7 +334,7 @@ static int mq_open(int uqd, const char *name, int oflags,
 
                err = mq_init(mq, attr);
                if (err) {
-                       xnfree(mq);
+                       kfree(mq);
                        return err;
                }
 


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

Reply via email to