From a9e0a0daa143d8bce1f988da78b49e72241b0fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikolai=20G=C3=BCtschow?= Date: Wed, 24 Jan 2024 11:14:23 +0100 Subject: [PATCH] pkg/uzlib: warn about memory leak during compression --- pkg/uzlib/doc.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/uzlib/doc.txt b/pkg/uzlib/doc.txt index 06bf3e9da7..4ed61edaa0 100644 --- a/pkg/uzlib/doc.txt +++ b/pkg/uzlib/doc.txt @@ -4,6 +4,10 @@ * @ingroup sys_compression * @brief Deflate/Zlib-compatible LZ77 compression/decompression library * + * @warning During compression, uzlib allocates memory on the heap without freeing it. + * Do not use this package in production code! + * See https://github.com/pfalcon/uzlib/issues/41#issuecomment-1907807048 + * * # License * * Licensed under zlib.