Index: nspr/pr/src/io/prmwait.c |
diff --git a/nspr/pr/src/io/prmwait.c b/nspr/pr/src/io/prmwait.c |
index 5982a1cfa9d52d8837cd4283131b653fb9435881..ab32fb5d8c4a7cadadd5508ca8b2c4dbc8fc52cb 100644 |
--- a/nspr/pr/src/io/prmwait.c |
+++ b/nspr/pr/src/io/prmwait.c |
@@ -475,6 +475,7 @@ static PRStatus _MW_PollInternal(PRWaitGroup *group) |
PR_Lock(group->ml); |
if (_prmw_running != group->state) |
{ |
+ PR_DELETE(poll_list); |
PR_SetError(PR_INVALID_STATE_ERROR, 0); |
goto aborted; |
} |