From: Marius Gavrilescu Date: Sat, 27 Aug 2016 22:39:00 +0000 (+0100) Subject: Don't leak memory on encoder DESTROY X-Git-Tag: 0.002~9 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=21c71a390e95f6a04b6a4c244f6e8bddd1554187;p=io-compress-brotli.git Don't leak memory on encoder DESTROY --- diff --git a/Brotli.xs b/Brotli.xs index abc218d..10beb1c 100644 --- a/Brotli.xs +++ b/Brotli.xs @@ -270,6 +270,7 @@ DESTROY(self) IO::Compress::Brotli self CODE: BrotliEncoderDestroyInstance(self->encoder); + Safefree(self); void set_dictionary(self, dict)