fix unbalanced allocator set

This commit is contained in:
Sergio R. Caprile committed 2026-11-09 17:25:56 -03:00
1 parent 4d8831f2b6
commit 706f4787e2
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1383,7 +1383,7 @@ static struct mg_connection *accept_conn(struct mg_connection *lsn,
c->loc.port = lsn->loc.port;
if ((l2addr = get_return_l2addr(lsn->mgr->ifp, &c->rem, false, pkt)) ==
NULL) {
free(c); // safety net for lousy networks, not actually needed
mg_free(c); // safety net for lousy networks, not actually needed
return NULL; // as path has already been checked at SYN (sending SYN+ACK)
}
memcpy(s->mac, l2addr, sizeof(s->mac));