Skip to content

Commit

Permalink
Merge pull request #486 from deep011/deep011-patch-1
Browse files Browse the repository at this point in the history
fix a memory leak bug for mset command
  • Loading branch information
andyqzb authored Aug 4, 2016
2 parents ced2044 + 558e0d4 commit 330f43a
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 330f43a

Please sign in to comment.