From 43ee3f87cac4ac0d1dd01059f0b7406c43927dc4 Mon Sep 17 00:00:00 2001 From: Marcel Jordense Date: Mon, 28 Oct 2019 10:52:15 +0100 Subject: [PATCH] use ddsrt_malloc for allocating iov array Signed-off-by: Marcel Jordense --- src/core/ddsi/src/q_xmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ddsi/src/q_xmsg.c b/src/core/ddsi/src/q_xmsg.c index abb4685..5e704a3 100644 --- a/src/core/ddsi/src/q_xmsg.c +++ b/src/core/ddsi/src/q_xmsg.c @@ -1374,7 +1374,7 @@ int nn_xpack_addmsg (struct nn_xpack *xp, struct nn_xmsg *m, const uint32_t flag assert (m->refd_payload == NULL || (m->refd_payload_iov.iov_len % 4) == 0); if (xp->iov == NULL) - xp->iov = malloc (NN_XMSG_MAX_MESSAGE_IOVECS * sizeof (*xp->iov)); + xp->iov = ddsrt_malloc (NN_XMSG_MAX_MESSAGE_IOVECS * sizeof (*xp->iov)); if (!nn_xpack_mayaddmsg (xp, m, flags)) {