]> git.saurik.com Git - redis.git/commitdiff
Merge pull request #146 from smly/fixed-redis-check-dump
authorSalvatore Sanfilippo <antirez@gmail.com>
Tue, 18 Oct 2011 12:13:25 +0000 (05:13 -0700)
committerSalvatore Sanfilippo <antirez@gmail.com>
Tue, 18 Oct 2011 12:13:25 +0000 (05:13 -0700)
Memory leak in redis-check-dump

src/redis-check-dump.c

index 3fc17b67ac1ad2395b34d28bf0fdab200af9ad93..77be686c2454c6b6c1b7de9b528d249d0f534118 100644 (file)
@@ -600,6 +600,7 @@ void process() {
             /* advance position */
             positions[0] = positions[1];
         }
+        free(entry.key);
     }
 
     /* because there is another potential error,