Skip to content

Commit 2669add

Browse files
p0pr0ck5Felipe Zimmerle
authored and
Felipe Zimmerle
committed
Fix memory leak in processContentOffset
1 parent cc72035 commit 2669add

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/modsecurity.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,8 @@ int ModSecurity::processContentOffset(const char *content, size_t len,
325325
varValue.c_str()),
326326
varValue.size());
327327
yajl_gen_map_close(g);
328+
329+
delete t;
328330
}
329331

330332
yajl_gen_array_close(g);

0 commit comments

Comments
 (0)