Don't leak memory on encoder DESTROY
[io-compress-brotli.git] / Brotli.xs
index abc218dd37bc4280af4c104eaf69326eae93461e..10beb1c6fd891e2903f44539ef189002c4f01726 100644 (file)
--- 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)
This page took 0.009634 seconds and 4 git commands to generate.