Fix off by one error in thrmgr error cleanup code

This should remove another potential source of segmentation faults when
the thread manager fails to start.

Issue:          #10
Reported by:    linuxton
pull/13/head
Daniel Roethlisberger 11 years ago
parent 29f912096b
commit fc29806663

@ -163,7 +163,7 @@ leave_thr:
pthread_join(ctx->thr[idx]->thr, NULL);
idx--;
}
idx = ctx->num_thr;
idx = ctx->num_thr - 1;
leave:
while (idx >= 0) {

Loading…
Cancel
Save