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:
committed by
Oliver Giles
parent
23abdd2712
commit
d25b7a46bb
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user