1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2026-10-11 05:10:53 +00:00

Fix memory leak in handleBadgeRequest

Signed-off-by: Wesley Hershberger <wesley.hershberger@gmail.com>
This commit is contained in:
Wesley Hershberger
2026-09-24 19:44:50 -05:00
committed by Oliver Giles
parent 23abdd2712
commit d25b7a46bb

View File

@@ -30,6 +30,7 @@
#include <fcntl.h>
#include <fnmatch.h>
#include <fstream>
#include <cstdlib>
#include <zlib.h>
#define COMPRESS_LOG_MIN_SIZE 1024
@@ -872,6 +873,7 @@ R"x(
return false;
badge = svg;
std::free(svg);
return true;
}