luca3m / redis3m

A C++ Redis client
Apache License 2.0
189 stars 78 forks source link

Leaking memory in constructor #9

Closed Kojoley closed 10 years ago

Kojoley commented 10 years ago

Destructor is not invoked when an exception is thrown in the constructor. Due to this redisContext will not be freed if connection was not established.

luca3m commented 10 years ago

Hi,

You are right, I will fix it soon. Thanks for reporting!