aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/lmq.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/lmq.c b/src/core/lmq.c
index 468debbe..10ca9958 100644
--- a/src/core/lmq.c
+++ b/src/core/lmq.c
@@ -27,7 +27,6 @@ nni_lmq_init(nni_lmq *lmq, size_t cap)
alloc *= 2;
}
if ((lmq->lmq_msgs = nni_zalloc(sizeof(nng_msg *) * alloc)) == NULL) {
- NNI_FREE_STRUCT(lmq);
return (NNG_ENOMEM);
}
lmq->lmq_cap = cap;