Skip to content

Commit

Permalink
Fix: crashes would happen after ~3k perform() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Leokuma committed Mar 15, 2024
1 parent 98ca3b4 commit 4de7191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcurl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const libcurl = await dlopen({
// easyReset: {name: 'curl_easy_reset', parameters: ['pointer'], result: 'void'}, /** @todo */
// easySend: {name: 'curl_easy_send', parameters: ['pointer', 'pointer', 'usize', 'pointer'], result: CURL_CODE}, /** @todo */
easySetoptBuf: {name: 'curl_easy_setopt', parameters: [EASY_HANDLE, OPT_ID, 'buffer'], result: CURL_CODE},
easySetoptFn: {name: 'curl_easy_setopt', parameters: [EASY_HANDLE, OPT_ID, 'function'], result: CURL_CODE},
easySetoptFn: {name: 'curl_easy_setopt', parameters: [EASY_HANDLE, OPT_ID, 'function'], result: CURL_CODE, callback: true},
easySetoptI64: {name: 'curl_easy_setopt', parameters: [EASY_HANDLE, OPT_ID, 'i64'], result: CURL_CODE},
easySetoptU64: {name: 'curl_easy_setopt', parameters: [EASY_HANDLE, OPT_ID, 'u64'], result: CURL_CODE},
easySetoptPtr: {name: 'curl_easy_setopt', parameters: [EASY_HANDLE, OPT_ID, 'pointer'], result: CURL_CODE},
Expand Down

0 comments on commit 4de7191

Please sign in to comment.