Skip to content

Commit beff21d

Browse files
authored
fix: resolve resource leak by using correct variable in curl cleanup (#889)
1 parent 50b7012 commit beff21d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stats.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function executeContributionGraphRequests(string $user, array $years): array
108108
}
109109
// close the handles
110110
foreach ($requests as $request) {
111-
curl_multi_remove_handle($multi, $handle);
111+
curl_multi_remove_handle($multi, $request);
112112
}
113113
curl_multi_close($multi);
114114
return $responses;

0 commit comments

Comments
 (0)