diff --git a/src/proto/nc_redis.c b/src/proto/nc_redis.c index b8ef86b3..2db88882 100644 --- a/src/proto/nc_redis.c +++ b/src/proto/nc_redis.c @@ -2333,6 +2333,8 @@ redis_copy_bulk(struct msg *dst, struct msg *src) mbuf_remove(&src->mhdr, mbuf); if (dst != NULL) { mbuf_insert(&dst->mhdr, mbuf); + } else { + mbuf_put(mbuf); } len -= mbuf_length(mbuf); mbuf = nbuf;