From 66b07bb795fa361695087d93476e0898a46c5b7e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 27 Dec 2019 16:22:40 +0100 Subject: [PATCH] xbps_array_foreach_cb_multi: fix previous. --- lib/plist.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/plist.c b/lib/plist.c index 8ed5e9f6..4f1f0b03 100644 --- a/lib/plist.c +++ b/lib/plist.c @@ -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);