1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 00:03:12 +02:00

api: fix file descriptor leak in hook_url (closes #2284)

This can happen after a timeout or if the hook is removed during the transfer.
This commit is contained in:
Sébastien Helleu
2025-11-15 17:19:42 +01:00
parent 898213b4f2
commit 3e49b73117
6 changed files with 164 additions and 40 deletions
+3 -1
View File
@@ -280,7 +280,9 @@ hook_process_child (struct t_hook *hook_process)
}
rc = weeurl_download (ptr_url,
HOOK_PROCESS(hook_process, options),
NULL); /* output */
0, /* timeout */
NULL, /* output */
NULL); /* stop_download */
}
else if (strncmp (HOOK_PROCESS(hook_process, command), "func:", 5) == 0)
{