From fef9c7001ded489439c8978288556fc9fc54a5ee Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Mon, 23 Feb 2015 06:04:09 +0100 Subject: [PATCH] webp: fix memory leak when using Mux API --- _webp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/_webp.c b/_webp.c index 70532726c..c6e71d229 100644 --- a/_webp.c +++ b/_webp.c @@ -189,6 +189,7 @@ PyObject* WebPDecode_wrapper(PyObject* self, PyObject* args) exif = PyBytes_FromStringAndSize((const char*)exif_data.bytes, exif_data.size); } + WebPDataClear(&image.bitstream); WebPMuxDelete(mux); } #endif