shogo82148 / Redis-Fast

fast perl binding for Redis database
https://metacpan.org/release/Redis-Fast
Other
25 stars 21 forks source link

UB in DESTROY #125

Closed VMELNICHENKO closed 2 years ago

VMELNICHENKO commented 2 years ago
Safefree(self);
DEBUG_MSG("%s", "finish");

Cause of UB on check ( self is undefined )

#define DEBUG_MSG(fmt, ...) \
    if (self->debug) {
VMELNICHENKO commented 2 years ago

Thanks for the fix!