summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvestre Ledru <sledru@mozilla.com>2015-04-28 17:45:46 -0700
committerSylvestre Ledru <sledru@mozilla.com>2015-04-28 17:45:46 -0700
commitb3dc1e4c47218a300327763994908cf07d14a0a1 (patch)
tree5b4be2ed11f8f159b54dbc5eecdd10a567e130d8
parent45151a36293483f2e8f9f476fd7d4696e93d912c (diff)
downloadnspr-hg-b3dc1e4c47218a300327763994908cf07d14a0a1.tar.gz
Bug 1021167 - Delete the variable poll_list in case of error. r=wtc.NSPR_4_10_9_BETA2
-rw-r--r--pr/src/io/prmwait.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pr/src/io/prmwait.c b/pr/src/io/prmwait.c
index 5982a1cf..ab32fb5d 100644
--- a/pr/src/io/prmwait.c
+++ b/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;
}