Signed-off-by: Jan Friesse <[email protected]>
---
exec/totemiba.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/exec/totemiba.c b/exec/totemiba.c
index ec4ccfc..0b2d2ca 100644
--- a/exec/totemiba.c
+++ b/exec/totemiba.c
@@ -271,6 +271,7 @@ static inline struct send_buf *mcast_send_buf_get (
2048, IBV_ACCESS_LOCAL_WRITE);
if (send_buf->mr == NULL) {
log_printf (LOGSYS_LEVEL_ERROR, "couldn't register memory
range\n");
+ free (send_buf);
return (NULL);
}
list_init (&send_buf->list_all);
@@ -307,6 +308,7 @@ static inline struct send_buf *token_send_buf_get (
2048, IBV_ACCESS_LOCAL_WRITE);
if (send_buf->mr == NULL) {
log_printf (LOGSYS_LEVEL_ERROR, "couldn't register memory
range\n");
+ free (send_buf);
return (NULL);
}
list_init (&send_buf->list_all);
--
1.7.1
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais