Module: xenomai-head Branch: master Commit: ef8be4e4e58489479c2245a87b1dbd04d331dca9 URL: http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=ef8be4e4e58489479c2245a87b1dbd04d331dca9
Author: Philippe Gerum <[email protected]> Date: Mon Aug 29 22:21:01 2011 +0200 native: fix leak in rt_pipes --- ksrc/skins/native/pipe.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/ksrc/skins/native/pipe.c b/ksrc/skins/native/pipe.c index ae22e03..0538427 100644 --- a/ksrc/skins/native/pipe.c +++ b/ksrc/skins/native/pipe.c @@ -160,6 +160,8 @@ static void __pipe_release_handler(void *xstate) /* nklock free */ if (pipe->bufpool == &pipe->privpool) xnheap_destroy(&pipe->privpool, __pipe_flush_pool, NULL); + else if (pipe->buffer) + xnheap_free(pipe->bufpool, pipe->buffer); #ifdef CONFIG_XENO_OPT_PERVASIVE if (pipe->cpid) _______________________________________________ Xenomai-git mailing list [email protected] https://mail.gna.org/listinfo/xenomai-git
