mirror of
https://github.com/ohwgiles/laminar.git
synced 2026-11-03 17:14:44 +00:00
Fix memory leak in handleBadgeRequest
Signed-off-by: Wesley Hershberger <wesley.hershberger@gmail.com>
This commit is contained in:
committed by
Oliver Giles
parent
23abdd2712
commit
d25b7a46bb
@@ -30,6 +30,7 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <fnmatch.h>
|
#include <fnmatch.h>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
#include <cstdlib>
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
|
|
||||||
#define COMPRESS_LOG_MIN_SIZE 1024
|
#define COMPRESS_LOG_MIN_SIZE 1024
|
||||||
@@ -872,6 +873,7 @@ R"x(
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
badge = svg;
|
badge = svg;
|
||||||
|
std::free(svg);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user