diff options
author | Roland McGrath <roland@gnu.org> | 1995-12-28 19:27:36 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-12-28 19:27:36 +0000 |
commit | f58bdae229f7a3a864dc17468099c57bdeeaaac8 (patch) | |
tree | 6bce190816ac24e9baadbf0471a8d8713f4ae66d | |
parent | d218d147eee4cbab8105a6ab75934919b9aa806d (diff) |
(ports_interrupt_rpc_on_notification): If NEW_REQ is not needed, put it on
the free list, don't call free on it.
-rw-r--r-- | libports/interrupt-on-notify.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libports/interrupt-on-notify.c b/libports/interrupt-on-notify.c index 79bd140c..f66a67ab 100644 --- a/libports/interrupt-on-notify.c +++ b/libports/interrupt-on-notify.c @@ -92,7 +92,10 @@ ports_interrupt_rpc_on_notification (void *object, break; if (req) - free (new_req); + { + new_req->next = _ports_free_rpc_notifies; + _ports_free_rpc_notifies = new_req; + } else { req = new_req; |