xbps_array_foreach_cb_multi: fix previous.
This commit is contained in:
parent
f5d93caf15
commit
66b07bb795
@ -152,7 +152,7 @@ xbps_array_foreach_cb_multi(struct xbps_handle *xhp,
|
|||||||
|
|
||||||
if ((rv = pthread_create(&thd[i].thread, NULL, array_foreach_thread, &thd[i])) != 0) {
|
if ((rv = pthread_create(&thd[i].thread, NULL, array_foreach_thread, &thd[i])) != 0) {
|
||||||
error = rv;
|
error = rv;
|
||||||
goto out;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -162,7 +162,6 @@ xbps_array_foreach_cb_multi(struct xbps_handle *xhp,
|
|||||||
error = rv;
|
error = rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
out:
|
|
||||||
free(thd);
|
free(thd);
|
||||||
pthread_spin_destroy(&reserved_lock);
|
pthread_spin_destroy(&reserved_lock);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user