Skip to content

Commit b197a67

Browse files
committed
fix memory leak in fuzz test itself
1 parent 08f6b99 commit b197a67

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)