mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-10 16:31:44 +00:00
fix unbalanced allocator set
This commit is contained in:
1 parent
4d8831f2b6
commit
706f4787e2
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -11027,7 +11027,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));
|
||||
|
||||
+1
-1
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user