1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-15 23:35:34 +00:00

Forgot about possible memleak

This commit is contained in:
Witold Filipczyk 2017-07-23 19:09:13 +02:00
parent 442f4936dc
commit a6799737f5

View File

@ -258,6 +258,17 @@ get_current_download(struct session *ses)
return download;
}
static void
done_retry_connection_without_verification(void *data)
{
struct delayed_open *deo = (struct delayed_open *)data;
if (deo) {
done_uri(deo->uri);
mem_free(deo);
}
}
static void
retry_connection_without_verification(void *data)
{
@ -319,7 +330,7 @@ print_error_dialog(struct session *ses, struct connection_state state,
msg.source,
deo, 2,
MSG_BOX_BUTTON(N_("~Yes"), retry_connection_without_verification, B_ENTER),
MSG_BOX_BUTTON(N_("~No"), NULL, B_ESC));
MSG_BOX_BUTTON(N_("~No"), done_retry_connection_without_verification, B_ESC));
}
/* TODO: retry */