Fix a free bug
This commit is contained in:
parent
372aae6f61
commit
c58112f0b7
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ void free_fdinfo(void* v) {
|
||||||
struct evt_core_fdinfo* fdinfo = (struct evt_core_fdinfo*)v;
|
struct evt_core_fdinfo* fdinfo = (struct evt_core_fdinfo*)v;
|
||||||
close(fdinfo->fd); // We close the file descriptor here
|
close(fdinfo->fd); // We close the file descriptor here
|
||||||
if (fdinfo->url != NULL) free(fdinfo->url); // We free the URL here;
|
if (fdinfo->url != NULL) free(fdinfo->url); // We free the URL here;
|
||||||
if (fdinfo->other != NULL) fdinfo->free_other(fdinfo->other);
|
if (fdinfo->free_other != NULL) fdinfo->free_other(fdinfo->other);
|
||||||
free(v);
|
free(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue