Free lz4 decompression context to avoid leak
This commit is contained in:
parent
e775e05d65
commit
3b899decb8
|
@ -192,6 +192,7 @@ def lz4_decode(payload):
|
|||
# pylint: disable-msg=no-member
|
||||
ctx = lz4f.createDecompContext()
|
||||
data = lz4f.decompressFrame(payload, ctx)
|
||||
lz4f.freeDecompContext(ctx)
|
||||
|
||||
# lz4f python module does not expose how much of the payload was
|
||||
# actually read if the decompression was only partial.
|
||||
|
|
Loading…
Reference in New Issue