nicolasff/webdis — pull request #42 by xgoat (2012-04-09 03:57:30+00:00)
Title: Fix websocket-related subscribe segfault

Hey,

Had a look into this issue just now. This seems to solve the problem for me. It's issue #31 on your tracker.

Cheers,

Rob

Commit message:

If one sent a [p]subscribe command through a websocket, the cmd
struct got freed after the first response was received. Subscribe
commands generate multiple responses, so this resulted in accessing
already-freed data, and double-freeing.

This patch adds a check to see if it's a subscribe command, and if it
is avoids the freeing.