Commit 1403f479 authored by Mark Andrews's avatar Mark Andrews

don't match on heap ids

parent bac180fc
Pipeline #14465 passed with stages
in 2 minutes and 24 seconds
...@@ -1416,7 +1416,7 @@ freeitem(struct workitem * item) { ...@@ -1416,7 +1416,7 @@ freeitem(struct workitem * item) {
if (LINKED(item, seqlink)) if (LINKED(item, seqlink))
UNLINK(seq[item->id], item, seqlink); UNLINK(seq[item->id], item, seqlink);
if (item->onheap) if (item->onheap)
exit(1); abort();
free(item); free(item);
} }
...@@ -3875,7 +3875,7 @@ udpread(int fd, int port) { ...@@ -3875,7 +3875,7 @@ udpread(int fd, int port) {
item = NEXT(item, idlink); item = NEXT(item, idlink);
/* Late response? */ /* Late response? */
if (item == NULL) if (item == NULL || item->onheap)
return; return;
process(item, buf, n, port); process(item, buf, n, port);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment