xbps_array_foreach_cb_multi: fix previous.

This commit is contained in:
Juan RP 2019-12-27 16:22:40 +01:00
parent f5d93caf15
commit 66b07bb795
No known key found for this signature in database
GPG Key ID: AF19F6CB482F9368

View File

@ -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) {
error = rv;
goto out;
break;
}
}
@ -162,7 +162,6 @@ xbps_array_foreach_cb_multi(struct xbps_handle *xhp,
error = rv;
}
out:
free(thd);
pthread_spin_destroy(&reserved_lock);