Skip to content

Commit

Permalink
fix a memory leak bug for mset command
Browse files Browse the repository at this point in the history
  • Loading branch information
deep011 authored Aug 3, 2016
1 parent ced2044 commit 558e0d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/proto/nc_redis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 558e0d4

Please sign in to comment.