Don't leak memory on encoder DESTROY
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 27 Aug 2016 22:39:00 +0000 (23:39 +0100)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 27 Aug 2016 22:54:44 +0000 (23:54 +0100)
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.010509 seconds and 4 git commands to generate.