• michael-grunder's avatar
    Free the reply in redisGetReply when passed NULL · ac0b186a
    michael-grunder authored
    We currently perform a NULL check in redisGetReply and don't push the
    reply back to the caller, but we don't free any reply meaning that this
    will leak memory:
    
    redisGetReply(context, NULL);
    
    This change simply frees the reply if we were passed NULL.
    
    Addresses #740
    ac0b186a
test.c 34.9 KB