mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
[curl] free f when non NULL
This commit is contained in:
parent
a142489a63
commit
c09b5da405
@ -577,8 +577,10 @@ remsock(SockInfo *f)
|
|||||||
{
|
{
|
||||||
//fprintf(stderr, "remsock f=%p\n", f);
|
//fprintf(stderr, "remsock f=%p\n", f);
|
||||||
|
|
||||||
if (f && f->sockfd) {
|
if (f) {
|
||||||
set_handlers(f->sockfd, NULL, NULL, NULL, NULL);
|
if (f->sockfd) {
|
||||||
|
set_handlers(f->sockfd, NULL, NULL, NULL, NULL);
|
||||||
|
}
|
||||||
mem_free(f);
|
mem_free(f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user