antirez / disque

Disque is a distributed message broker
BSD 3-Clause "New" or "Revised" License
8.01k stars 537 forks source link

server.c/freeMemoryIfNeeded: guarantee de is not NULL when using #124

Closed sunheehnus closed 8 years ago

sunheehnus commented 8 years ago

Fix https://github.com/antirez/disque/issues/123

antirez commented 8 years ago

Thank you, fixed just returning ASAP if getRandomKey() returns NULL.