From f58bdae229f7a3a864dc17468099c57bdeeaaac8 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 28 Dec 1995 19:27:36 +0000 Subject: (ports_interrupt_rpc_on_notification): If NEW_REQ is not needed, put it on the free list, don't call free on it. --- libports/interrupt-on-notify.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libports') 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; -- cgit v1.2.3