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:
parent
a142489a63
commit
c09b5da405
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user