Skip to content

Commit e811afd

Browse files
authored
Merge pull request #3152 from cesanta/fuzzer
fix memory leak in fuzz test itself
2 parents 08f6b99 + b197a67 commit e811afd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/fuzz.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
146146
c->pfn(c, MG_EV_READ, NULL); // manually invoke protocol event handler
147147

148148
free(pkt);
149+
mg_mgr_free(&mgr);
149150
}
150151

151152
return 0;

0 commit comments

Comments
 (0)