summaryrefslogtreecommitdiff
path: root/libports/interrupt-on-notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'libports/interrupt-on-notify.c')
-rw-r--r--libports/interrupt-on-notify.c5
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;