]> git.saurik.com Git - redis.git/commit - src/t_set.c
SRANDMEMBER <count> leak fixed.
authorantirez <antirez@gmail.com>
Thu, 20 Sep 2012 14:33:36 +0000 (16:33 +0200)
committerantirez <antirez@gmail.com>
Fri, 21 Sep 2012 09:56:00 +0000 (11:56 +0200)
commit31fe053a62eab0133b18537764cf2246709414f1
treeeaf71ebacc3325911dc0dae7b4ce6d4b33bc8dfe
parentdd94771578ca196db564ab3f51ae6ce6b185531c
SRANDMEMBER <count> leak fixed.

For "CASE 4" (see code) we need to free the element if it's already in
the result dictionary and adding it failed.
src/t_set.c