1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

[curl] free f when non NULL

This commit is contained in:
Witold Filipczyk 2023-07-24 16:57:52 +02:00
parent a142489a63
commit c09b5da405

View File

@ -577,8 +577,10 @@ remsock(SockInfo *f)
{
//fprintf(stderr, "remsock f=%p\n", f);
if (f && f->sockfd) {
set_handlers(f->sockfd, NULL, NULL, NULL, NULL);
if (f) {
if (f->sockfd) {
set_handlers(f->sockfd, NULL, NULL, NULL, NULL);
}
mem_free(f);
}
}